about summary refs log tree commit diff
path: root/src/state/dialogs/index.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-10-09 21:30:42 +0300
committerGitHub <noreply@github.com>2024-10-09 11:30:42 -0700
commitcca344a3d1cdca3d4e63806a9bd5f7867f8961d4 (patch)
tree999d7dffe5d53989b7e217db13f451c6d019ff57 /src/state/dialogs/index.tsx
parentb3ade19bbe3da3caf07bf9561cebb11dac4b6afc (diff)
downloadvoidsky-cca344a3d1cdca3d4e63806a9bd5f7867f8961d4.tar.zst
Allow nested sheets without boilerplate (#5660)
Co-authored-by: Hailey <me@haileyok.com>
Diffstat (limited to 'src/state/dialogs/index.tsx')
-rw-r--r--src/state/dialogs/index.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/dialogs/index.tsx b/src/state/dialogs/index.tsx
index 80893190f..f770e9c16 100644
--- a/src/state/dialogs/index.tsx
+++ b/src/state/dialogs/index.tsx
@@ -3,7 +3,7 @@ import React from 'react'
 import {isWeb} from '#/platform/detection'
 import {DialogControlRefProps} from '#/components/Dialog'
 import {Provider as GlobalDialogsProvider} from '#/components/dialogs/Context'
-import {BottomSheet} from '../../../modules/bottom-sheet'
+import {BottomSheetNativeComponent} from '../../../modules/bottom-sheet'
 
 interface IDialogContext {
   /**
@@ -61,7 +61,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
 
       return openDialogs.current.size > 0
     } else {
-      BottomSheet.dismissAll()
+      BottomSheetNativeComponent.dismissAll()
       return false
     }
   }, [])