Fixes to edit profile modal

zio/stable
Paul Frazee 2022-11-28 14:51:49 -06:00
parent 39aaa13468
commit bf7b0be23d
2 changed files with 8 additions and 2 deletions

View File

@ -65,8 +65,8 @@ export function Component({
return ( return (
<View style={s.flex1}> <View style={s.flex1}>
<Text style={[s.textCenter, s.bold, s.f16]}>Edit my profile</Text>
<BottomSheetScrollView style={styles.inner}> <BottomSheetScrollView style={styles.inner}>
<Text style={styles.title}>Edit my profile</Text>
{error !== '' && ( {error !== '' && (
<View style={s.mb10}> <View style={s.mb10}>
<ErrorMessage message={error} /> <ErrorMessage message={error} />
@ -114,6 +114,12 @@ const styles = StyleSheet.create({
inner: { inner: {
padding: 14, padding: 14,
}, },
title: {
textAlign: 'center',
fontWeight: 'bold',
fontSize: 24,
marginBottom: 18,
},
group: { group: {
marginBottom: 10, marginBottom: 10,
}, },

View File

@ -35,7 +35,7 @@ export const Modal = observer(function Modal() {
} else { } else {
bottomSheetRef.current?.close() bottomSheetRef.current?.close()
} }
}, [store.shell.isModalActive, bottomSheetRef]) }, [store.shell.isModalActive, bottomSheetRef, store.shell.activeModal?.name])
let snapPoints: (string | number)[] = CLOSED_SNAPPOINTS let snapPoints: (string | number)[] = CLOSED_SNAPPOINTS
let element let element