diff options
author | Bartosz Kaszubowski <gosimek@gmail.com> | 2025-08-26 21:38:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-26 14:38:59 -0500 |
commit | 8dcf1825ec3fa3a98ae8d9974434489b9b66a69b (patch) | |
tree | bfa71abf3ff63ac54d7bda643ab2c19325f05d51 /src/components/Dialog/types.ts | |
parent | c12fd4482e9bbccf725c662a26d3dccd12c8ee83 (diff) | |
download | voidsky-8dcf1825ec3fa3a98ae8d9974434489b9b66a69b.tar.zst |
Web: fix Edit Profile discard warning when pressing backdrop (#8824)
* Web: fix Edit Profile discard warning * cleanup imports
Diffstat (limited to 'src/components/Dialog/types.ts')
-rw-r--r-- | src/components/Dialog/types.ts | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/components/Dialog/types.ts b/src/components/Dialog/types.ts index 3ca64a321..1308e625c 100644 --- a/src/components/Dialog/types.ts +++ b/src/components/Dialog/types.ts @@ -1,15 +1,15 @@ -import React from 'react' -import type { - AccessibilityProps, - GestureResponderEvent, - ScrollViewProps, +import { + type AccessibilityProps, + type GestureResponderEvent, + type ScrollViewProps, + type StyleProp, + type ViewStyle, } from 'react-native' -import {ViewStyle} from 'react-native' -import {StyleProp} from 'react-native' +import type React from 'react' -import {ViewStyleProp} from '#/alf' -import {BottomSheetViewProps} from '../../../modules/bottom-sheet' -import {BottomSheetSnapPoint} from '../../../modules/bottom-sheet/src/BottomSheet.types' +import {type ViewStyleProp} from '#/alf' +import {type BottomSheetViewProps} from '../../../modules/bottom-sheet' +import {type BottomSheetSnapPoint} from '../../../modules/bottom-sheet/src/BottomSheet.types' type A11yProps = Required<AccessibilityProps> @@ -64,6 +64,7 @@ export type DialogOuterProps = { nativeOptions?: Omit<BottomSheetViewProps, 'children'> webOptions?: { alignCenter?: boolean + onBackgroundPress?: (e: GestureResponderEvent) => void } testID?: string } |