From cca344a3d1cdca3d4e63806a9bd5f7867f8961d4 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 9 Oct 2024 21:30:42 +0300 Subject: Allow nested sheets without boilerplate (#5660) Co-authored-by: Hailey --- src/state/dialogs/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/state/dialogs/index.tsx') 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 } }, []) -- cgit 1.4.1