[Sheets] [Pt. 5] Update types and props (#5563)

This commit is contained in:
Hailey
2024-10-02 16:03:49 -07:00
committed by GitHub
parent 0037353528
commit ede5d0155b
17 changed files with 59 additions and 83 deletions
+3 -3
View File
@@ -33,7 +33,7 @@ export function Outer({
children,
control,
onClose,
nativeOptions: _nativeOptions, // @TODO DIALOG REFACTOR
nativeOptions,
testID,
}: React.PropsWithChildren<DialogOuterProps>) {
const t = useTheme()
@@ -41,7 +41,6 @@ export function Outer({
const insets = useSafeAreaInsets()
const closeCallbacks = React.useRef<(() => void)[]>([])
const {setDialogIsOpen} = useDialogStateControlContext()
// @TODO DIALOG REFACTOR - can i get rid of this? seems pointless tbh
const callQueuedCallbacks = React.useCallback(() => {
for (const cb of closeCallbacks.current) {
@@ -103,7 +102,8 @@ export function Outer({
onCloseAnimationComplete()
}
}}
cornerRadius={20}>
cornerRadius={20}
{...nativeOptions}>
<View testID={testID} style={[t.atoms.bg]}>
{children}
</View>