mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 05:54:56 -06:00
snackbar notification after updating zipcoe
This commit is contained in:
parent
832b9b1696
commit
23f9391906
1 changed files with 2 additions and 2 deletions
|
|
@ -6,6 +6,7 @@ import { palette } from '../ui-theme';
|
|||
import { compose, withState, withHandlers, lifecycle } from 'recompose';
|
||||
import { withRouterContext } from '../enhancers/routeEnhancers';
|
||||
import { getLocation } from '../apis/PositionApi';
|
||||
import Snackbar from 'react-native-snackbar';
|
||||
|
||||
type Props = {
|
||||
zipcode: ?string,
|
||||
|
|
@ -50,8 +51,6 @@ export const ProfilePage = (props: Props) => {
|
|||
flex: 1,
|
||||
flexDirection: 'column',
|
||||
justifyContent: 'flex-end',
|
||||
borderBottomColor: palette.disabledColor,
|
||||
borderBottomWidth: 1,
|
||||
height: 60,
|
||||
}}>
|
||||
<TextInput
|
||||
|
|
@ -109,6 +108,7 @@ export default compose(
|
|||
await AsyncStorage.setItem('zipcode', props.zipcode);
|
||||
props.setLoading(false);
|
||||
getLocation();
|
||||
Snackbar.show({ title: 'Zipcode updated.' });
|
||||
},
|
||||
}),
|
||||
withHandlers({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue