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 (