|
|
@ -164,6 +164,7 @@ const ConfirmDialog = forwardRef< |
|
|
|
restProceedButtonProps, |
|
|
|
restProceedButtonProps, |
|
|
|
], |
|
|
|
], |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
const actionAreaElement = useMemo( |
|
|
|
const actionAreaElement = useMemo( |
|
|
|
() => |
|
|
|
() => |
|
|
|
isLoadingAction ? ( |
|
|
|
isLoadingAction ? ( |
|
|
@ -185,6 +186,15 @@ const ConfirmDialog = forwardRef< |
|
|
|
typeof content === 'string' ? <BodyText text={content} /> : content, |
|
|
|
typeof content === 'string' ? <BodyText text={content} /> : content, |
|
|
|
[content], |
|
|
|
[content], |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
const headerElement = useMemo( |
|
|
|
|
|
|
|
() => |
|
|
|
|
|
|
|
typeof titleText === 'string' ? ( |
|
|
|
|
|
|
|
<HeaderText>{titleText}</HeaderText> |
|
|
|
|
|
|
|
) : ( |
|
|
|
|
|
|
|
titleText |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
[titleText], |
|
|
|
|
|
|
|
); |
|
|
|
const combinedScrollBoxSx = useMemo<SxProps<Theme> | undefined>( |
|
|
|
const combinedScrollBoxSx = useMemo<SxProps<Theme> | undefined>( |
|
|
|
() => |
|
|
|
() => |
|
|
|
isScrollContent |
|
|
|
isScrollContent |
|
|
@ -216,9 +226,7 @@ const ConfirmDialog = forwardRef< |
|
|
|
}} |
|
|
|
}} |
|
|
|
{...restDialogProps} |
|
|
|
{...restDialogProps} |
|
|
|
> |
|
|
|
> |
|
|
|
<PanelHeader> |
|
|
|
<PanelHeader>{headerElement}</PanelHeader> |
|
|
|
<HeaderText text={titleText} /> |
|
|
|
|
|
|
|
</PanelHeader> |
|
|
|
|
|
|
|
<FlexBox |
|
|
|
<FlexBox |
|
|
|
component={contentContainerComponent} |
|
|
|
component={contentContainerComponent} |
|
|
|
onSubmit={contentContainerSubmitEventHandler} |
|
|
|
onSubmit={contentContainerSubmitEventHandler} |
|
|
|