Skip to content

Commit 57d4b4b

Browse files
committed
Merge branch 'multitenancy' into develop
2 parents d507f1b + bf62f77 commit 57d4b4b

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/frontend/src/components/NERModal.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export interface NERModalProps {
1414
onSubmit?: () => void;
1515
onHide: () => void;
1616
children?: ReactNode;
17+
titleChildren?: ReactNode;
1718
cancelText?: CancelText;
1819
submitText?: SubmitText;
1920
disabled?: boolean;
@@ -38,7 +39,8 @@ const NERModal = ({
3839
hideFormButtons = false,
3940
hideBackDrop = false,
4041
icon,
41-
paperProps
42+
paperProps,
43+
titleChildren
4244
}: NERModalProps) => {
4345
return (
4446
<Dialog
@@ -51,7 +53,7 @@ const NERModal = ({
5153
: { borderRadius: '10px', maxWidth: '700px' }
5254
}}
5355
>
54-
<DialogTitle sx={{ backgroundColor: background, minHeight: '64px' }}>
56+
<DialogTitle sx={{ backgroundColor: background, minHeight: '64px', position: 'relative' }}>
5557
{icon ? (
5658
<Box display="flex" justifyContent="left" alignItems="center">
5759
<Icon
@@ -73,6 +75,7 @@ const NERModal = ({
7375
) : (
7476
title
7577
)}
78+
{titleChildren}
7679
</DialogTitle>
7780

7881
{showCloseButton && (

src/frontend/src/pages/CalendarPage/DesignReviewSummaryModal.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ const DRCSummaryModal: React.FC<DRCSummaryModalProps> = ({ open, onHide, designR
7272
icon={getTeamTypeIcon(designReview.teamType.teamTypeId, true)}
7373
hideBackDrop
7474
showCloseButton
75-
>
76-
<Box minWidth="550px">
77-
<DeleteModal />
75+
titleChildren={
7876
<Box position="absolute" right="52px" top="12px">
7977
{isDesignReviewCreator && (
8078
<>
@@ -98,6 +96,10 @@ const DRCSummaryModal: React.FC<DRCSummaryModalProps> = ({ open, onHide, designR
9896
<CheckCircle />
9997
</IconButton>
10098
</Box>
99+
}
100+
>
101+
<Box minWidth="550px">
102+
<DeleteModal />
101103

102104
<Box>
103105
<Box display={'flex'} alignItems={'center'}>

0 commit comments

Comments
 (0)