Fix 2231 Modal overlap on double modal open (#2239)

* add same multiple snapPoints to Confirm modal

* snapToIndex instead of confirm
This commit is contained in:
Ansh 2023-12-19 03:56:43 +05:30 committed by GitHub
parent 7af4825911
commit 1cf5a0b0fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ export function ModalsContainer() {
useEffect(() => {
if (isModalActive) {
bottomSheetRef.current?.expand()
bottomSheetRef.current?.snapToIndex(0)
} else {
bottomSheetRef.current?.close()
}