fix last modal

This commit is contained in:
burnettk 2022-11-04 18:18:28 -04:00
parent 96daac637b
commit 8be06184d5
1 changed files with 9 additions and 9 deletions

View File

@ -339,15 +339,15 @@ export default function ProcessInstanceShow() {
const taskToUse: any = { ...taskToDisplay, data: taskDataToDisplay };
if (taskToDisplay) {
return (
<Modal show={!!taskToUse} onHide={handleTaskDataDisplayClose}>
<Modal.Header closeButton>
<Modal.Title>
<Stack direction="horizontal" gap={2}>
{taskToUse.name} ({taskToUse.type}): {taskToUse.state}
{taskDataButtons(taskToUse)}
</Stack>
</Modal.Title>
</Modal.Header>
<Modal
open={!!taskToUse}
passiveModal
onRequestClose={handleTaskDataDisplayClose}
>
<Stack orientation="horizontal" gap={2}>
{taskToUse.name} ({taskToUse.type}): {taskToUse.state}
{taskDataButtons(taskToUse)}
</Stack>
{taskDataContainer()}
</Modal>
);