From 2b98055f0e2ea1f19d38b4c64a43681303ea2551 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 2 Oct 2024 17:54:56 -0700 Subject: [PATCH] update type imports --- src/components/Dialog/index.tsx | 8 ++++---- src/components/Dialog/types.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx index 7493e7748b..0695c11ebf 100644 --- a/src/components/Dialog/index.tsx +++ b/src/components/Dialog/index.tsx @@ -2,7 +2,6 @@ import React, {useImperativeHandle} from 'react' import {StyleProp, TextInput, View, ViewStyle} from 'react-native' import {GestureHandlerRootView, ScrollView} from 'react-native-gesture-handler' import {useSafeAreaInsets} from 'react-native-safe-area-context' -import {BlueskyBottomSheetView} from '@haileyok/bluesky-bottom-sheet' import {logger} from '#/logger' import {isIOS} from '#/platform/detection' @@ -17,6 +16,7 @@ import { } from '#/components/Dialog/types' import {createInput} from '#/components/forms/TextField' import {Portal} from '#/components/Portal' +import {BottomSheetView} from '../../../modules/bottom-sheet' export {useDialogContext, useDialogControl} from '#/components/Dialog/context' export * from '#/components/Dialog/types' @@ -52,7 +52,7 @@ export function OuterWithoutPortal({ testID, }: React.PropsWithChildren) { const t = useTheme() - const ref = React.useRef(null) + const ref = React.useRef(null) const insets = useSafeAreaInsets() const closeCallbacks = React.useRef<(() => void)[]>([]) const {setDialogIsOpen} = useDialogStateControlContext() @@ -109,7 +109,7 @@ export function OuterWithoutPortal({ return ( - {children} - + ) } diff --git a/src/components/Dialog/types.ts b/src/components/Dialog/types.ts index a8568e5748..c5219e5eab 100644 --- a/src/components/Dialog/types.ts +++ b/src/components/Dialog/types.ts @@ -4,9 +4,9 @@ import type { GestureResponderEvent, ScrollViewProps, } from 'react-native' -import {BlueskyBottomSheetViewProps} from '@haileyok/bluesky-bottom-sheet' import {ViewStyleProp} from '#/alf' +import {BottomSheetViewProps} from '../../../modules/bottom-sheet' type A11yProps = Required @@ -53,7 +53,7 @@ export type DialogControlOpenOptions = { export type DialogOuterProps = { control: DialogControlProps onClose?: () => void - nativeOptions?: Omit + nativeOptions?: Omit webOptions?: {} testID?: string }