From 4b14d2d568b3c32bdc8bfa76eca16e6b5cc335f6 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 3 Mar 2023 00:01:45 -0500 Subject: [PATCH] fix(striker-ui): add arbitrary slot before action area in ConfirmDialog --- striker-ui/components/ConfirmDialog.tsx | 2 ++ striker-ui/types/ConfirmDialog.d.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/striker-ui/components/ConfirmDialog.tsx b/striker-ui/components/ConfirmDialog.tsx index 3298375a..5259db49 100644 --- a/striker-ui/components/ConfirmDialog.tsx +++ b/striker-ui/components/ConfirmDialog.tsx @@ -49,6 +49,7 @@ const ConfirmDialog = forwardRef< onProceedAppend, onSubmitAppend, openInitially = false, + preActionArea, proceedButtonProps = {}, proceedColour: proceedColourKey = 'blue', scrollContent: isScrollContent = false, @@ -234,6 +235,7 @@ const ConfirmDialog = forwardRef< {contentElement} + {preActionArea} {actionAreaElement} diff --git a/striker-ui/types/ConfirmDialog.d.ts b/striker-ui/types/ConfirmDialog.d.ts index f9fdde02..24e94d11 100644 --- a/striker-ui/types/ConfirmDialog.d.ts +++ b/striker-ui/types/ConfirmDialog.d.ts @@ -10,6 +10,7 @@ type ConfirmDialogOptionalProps = { onCancelAppend?: ContainedButtonProps['onClick']; onSubmitAppend?: import('react').FormEventHandler; openInitially?: boolean; + preActionArea?: import('react').ReactNode; proceedButtonProps?: ContainedButtonProps; proceedColour?: 'blue' | 'red'; scrollContent?: boolean;