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

main
Tsu-ba-me 2 years ago committed by digimer
parent 4400bf6645
commit 442427cf63
  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