Edit profile fixes (#258)

* Fix: only clear banner or avi when requested in edit profile

* Set the default snap points to 90% to ensure the modal never fails to raise
This commit is contained in:
Paul Frazee 2023-03-03 14:02:40 -06:00 committed by GitHub
parent 36b8f011a4
commit fd9d6327b4
2 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ import * as DeleteAccountModal from './DeleteAccount'
import {usePalette} from 'lib/hooks/usePalette'
import {StyleSheet} from 'react-native'
const CLOSED_SNAPPOINTS = ['10%']
const DEFAULT_SNAPPOINTS = ['90%']
export const ModalsContainer = observer(function ModalsContainer() {
const store = useStores()
@ -42,7 +42,7 @@ export const ModalsContainer = observer(function ModalsContainer() {
}
}, [store.shell.isModalActive, bottomSheetRef, activeModal?.name])
let snapPoints: (string | number)[] = CLOSED_SNAPPOINTS
let snapPoints: (string | number)[] = DEFAULT_SNAPPOINTS
let element
if (activeModal?.name === 'confirm') {
snapPoints = ConfirmModal.snapPoints