about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-28 14:51:49 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-28 14:51:49 -0600
commitbf7b0be23de233afddda939827b2fc220e8b843e (patch)
tree7126047e98535a497b7a6061ac594e138f5d6233
parent39aaa1346832941bfaff0043fb2d575aa1eaeb2f (diff)
downloadvoidsky-bf7b0be23de233afddda939827b2fc220e8b843e.tar.zst
Fixes to edit profile modal
-rw-r--r--src/view/com/modals/EditProfile.tsx8
-rw-r--r--src/view/com/modals/Modal.tsx2
2 files changed, 8 insertions, 2 deletions
diff --git a/src/view/com/modals/EditProfile.tsx b/src/view/com/modals/EditProfile.tsx
index 50acccf67..1b5c99d97 100644
--- a/src/view/com/modals/EditProfile.tsx
+++ b/src/view/com/modals/EditProfile.tsx
@@ -65,8 +65,8 @@ export function Component({
 
   return (
     <View style={s.flex1}>
-      <Text style={[s.textCenter, s.bold, s.f16]}>Edit my profile</Text>
       <BottomSheetScrollView style={styles.inner}>
+        <Text style={styles.title}>Edit my profile</Text>
         {error !== '' && (
           <View style={s.mb10}>
             <ErrorMessage message={error} />
@@ -114,6 +114,12 @@ const styles = StyleSheet.create({
   inner: {
     padding: 14,
   },
+  title: {
+    textAlign: 'center',
+    fontWeight: 'bold',
+    fontSize: 24,
+    marginBottom: 18,
+  },
   group: {
     marginBottom: 10,
   },
diff --git a/src/view/com/modals/Modal.tsx b/src/view/com/modals/Modal.tsx
index 9d7033411..47b627435 100644
--- a/src/view/com/modals/Modal.tsx
+++ b/src/view/com/modals/Modal.tsx
@@ -35,7 +35,7 @@ export const Modal = observer(function Modal() {
     } else {
       bottomSheetRef.current?.close()
     }
-  }, [store.shell.isModalActive, bottomSheetRef])
+  }, [store.shell.isModalActive, bottomSheetRef, store.shell.activeModal?.name])
 
   let snapPoints: (string | number)[] = CLOSED_SNAPPOINTS
   let element