From a20a2f7cc3f0a3c2d98b378c5f62c0a09d691aa3 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 23 Jan 2024 17:23:40 -0500 Subject: [PATCH] fix(striker-ui): pass initial props, allow overwrite in confirm dialog hook --- striker-ui/hooks/useConfirmDialog.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/striker-ui/hooks/useConfirmDialog.tsx b/striker-ui/hooks/useConfirmDialog.tsx index 02158447..b28a537e 100644 --- a/striker-ui/hooks/useConfirmDialog.tsx +++ b/striker-ui/hooks/useConfirmDialog.tsx @@ -28,9 +28,9 @@ const useConfirmDialog = ( const { initial: { actionProceedText = '', - closeOnProceed, content = '', titleText = '', + ...restInitialProps } = {}, } = args; @@ -74,12 +74,12 @@ const useConfirmDialog = ( const confirmDialog = useMemo( () => ( ), - [closeOnProceed, confirmDialogProps], + [confirmDialogProps, restInitialProps], ); return {