fix(striker-ui): add arbitrary slot before action area in ConfirmDialog

main
Tsu-ba-me 2 years ago
parent 3b9e3c6af0
commit 4b14d2d568
  1. 2
      striker-ui/components/ConfirmDialog.tsx
  2. 1
      striker-ui/types/ConfirmDialog.d.ts

@ -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<
<Box {...restScrollBoxProps} sx={combinedScrollBoxSx}>
{contentElement}
</Box>
{preActionArea}
{actionAreaElement}
</FlexBox>
</MUIDialog>

@ -10,6 +10,7 @@ type ConfirmDialogOptionalProps = {
onCancelAppend?: ContainedButtonProps['onClick'];
onSubmitAppend?: import('react').FormEventHandler<HTMLDivElement>;
openInitially?: boolean;
preActionArea?: import('react').ReactNode;
proceedButtonProps?: ContainedButtonProps;
proceedColour?: 'blue' | 'red';
scrollContent?: boolean;

Loading…
Cancel
Save