fix last modal

This commit is contained in:
burnettk 2022-11-04 18:18:28 -04:00
parent 96daac637b
commit 8be06184d5

View File

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