From f88b16525498584f81ea7f594a63623fc5dc7ce9 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 20 Feb 2024 18:20:59 -0600 Subject: Add optional close callback to Dialog (#2947) * Add optional close callback * No emitter --- src/components/Dialog/types.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/components/Dialog/types.ts') 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 - open: (index?: number) => void - close: () => void - } + } & DialogControlProps onClose?: () => void nativeOptions?: { sheet?: Omit -- cgit 1.4.1