diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2024-02-29 09:51:56 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 09:51:56 +0900 |
commit | a1127bfcfc7ad080a5bd6210c6561788f1643db8 (patch) | |
tree | f2280d0308e4fc979f59f4f7abe3ef31a86390a2 /src/components/Dialog/types.ts | |
parent | b723c4ca7ce22f673ea60e119da8552c452741da (diff) | |
parent | 7fd13cacfea4e9e4609ac2cfa11749544fc2f8f8 (diff) | |
download | voidsky-a1127bfcfc7ad080a5bd6210c6561788f1643db8.tar.zst |
Merge branch 'main' into patch-3
Diffstat (limited to 'src/components/Dialog/types.ts')
-rw-r--r-- | src/components/Dialog/types.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/Dialog/types.ts b/src/components/Dialog/types.ts index 75ba825ac..161c03734 100644 --- a/src/components/Dialog/types.ts +++ b/src/components/Dialog/types.ts @@ -6,8 +6,13 @@ import {ViewStyleProp} from '#/alf' type A11yProps = Required<AccessibilityProps> +export type DialogControlProps = { + open: (options?: DialogControlOpenOptions) => void + close: (callback?: () => void) => void +} + export type DialogContextProps = { - close: () => void + close: DialogControlProps['close'] } export type DialogControlOpenOptions = { @@ -20,11 +25,6 @@ export type DialogControlOpenOptions = { index?: number } -export type DialogControlProps = { - open: (options?: DialogControlOpenOptions) => void - close: (callback?: () => void) => void -} - export type DialogOuterProps = { control: { ref: React.RefObject<DialogControlProps> |