From c3fb0aed6b8c8c7923304e228005201fa9ecd241 Mon Sep 17 00:00:00 2001 From: hanzlamateen Date: Mon, 3 Jun 2024 14:28:09 +0500 Subject: [PATCH] Updated onSubmit type for confirm dialog to include void --- packages/ui/src/components/tailwind/ConfirmDialog/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/components/tailwind/ConfirmDialog/index.tsx b/packages/ui/src/components/tailwind/ConfirmDialog/index.tsx index 1ba5a292a1..3d70b4a180 100644 --- a/packages/ui/src/components/tailwind/ConfirmDialog/index.tsx +++ b/packages/ui/src/components/tailwind/ConfirmDialog/index.tsx @@ -33,7 +33,7 @@ import Text from '../../../primitives/tailwind/Text' interface ConfirmDialogProps { text: string - onSubmit: () => Promise + onSubmit: () => Promise | void onClose?: () => void modalProps?: Partial }