diff options
author | Eric Bailey <git@esb.lol> | 2024-02-20 18:20:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 18:20:59 -0600 |
commit | f88b16525498584f81ea7f594a63623fc5dc7ce9 (patch) | |
tree | 0f87d5dc87778da6b4451be536437a432adfbf91 /src/components/Dialog/types.ts | |
parent | 6413b8ba8cbf73678d0f1687153b16f3a44f08b0 (diff) | |
download | voidsky-f88b16525498584f81ea7f594a63623fc5dc7ce9.tar.zst |
Add optional close callback to Dialog (#2947)
* Add optional close callback * No emitter
Diffstat (limited to 'src/components/Dialog/types.ts')
-rw-r--r-- | src/components/Dialog/types.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/Dialog/types.ts b/src/components/Dialog/types.ts index 00178926a..75ba825ac 100644 --- a/src/components/Dialog/types.ts +++ b/src/components/Dialog/types.ts @@ -22,15 +22,13 @@ export type DialogControlOpenOptions = { export type DialogControlProps = { open: (options?: DialogControlOpenOptions) => void - close: () => void + close: (callback?: () => void) => void } export type DialogOuterProps = { control: { ref: React.RefObject<DialogControlProps> - open: (index?: number) => void - close: () => void - } + } & DialogControlProps onClose?: () => void nativeOptions?: { sheet?: Omit<BottomSheetProps, 'children'> |