From c97128c106b26a640a025fa03b218ffce6cdf90a Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Thu, 5 Mar 2026 12:23:25 -0500 Subject: [PATCH] handle inner components --- src/components/Dialog/index.tsx | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx index 40e751bf29..595432a971 100644 --- a/src/components/Dialog/index.tsx +++ b/src/components/Dialog/index.tsx @@ -261,18 +261,8 @@ export const ScrollableInner = React.forwardRef( {children, contentContainerStyle, header, ...props}, ref, ) { - const {nativeSnapPoint, disableDrag, setDisableDrag, type} = - useDialogContext() + const {nativeSnapPoint, disableDrag, setDisableDrag} = useDialogContext() const insets = useSafeAreaInsets() - - if (type === 'alert') { - return ( - - {header} - {children} - - ) - } const isAtMaxSnapPoint = nativeSnapPoint === BottomSheetSnapPoint.Full let paddingBottom = 0 @@ -440,11 +430,7 @@ export function Handle({ const t = useTheme() const {_} = useLingui() const {screenReaderEnabled} = useA11y() - const {close, type} = useDialogContext() - - if (type === 'alert') { - return null - } + const {close} = useDialogContext() return (