Skip to content

Commit 251aba0

Browse files
Merge pull request #3972 from Zacgoose/dev
Update the Exchange Info Card to include more mailbox hold types
2 parents 7ec9712 + fb461f5 commit 251aba0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

src/components/CippCards/CippExchangeInfoCard.jsx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ export const CippExchangeInfoCard = (props) => {
2929
{ name: "ActiveSync", enabled: exchangeData?.MailboxActiveSyncEnabled },
3030
];
3131

32+
// Define mailbox hold types array
33+
const holds = [
34+
{ name: "Compliance Tag Hold", enabled: exchangeData?.ComplianceTagHold },
35+
{ name: "Retention Hold", enabled: exchangeData?.RetentionHold },
36+
{ name: "Litigation Hold", enabled: exchangeData?.LitigationHold },
37+
];
38+
3239
return (
3340
<Card {...other}>
3441
<CardHeader
@@ -175,6 +182,30 @@ export const CippExchangeInfoCard = (props) => {
175182
)
176183
}
177184
/>
185+
{/* Combine all mailbox hold types into a single PropertyListItem */}
186+
<PropertyListItem
187+
divider
188+
label="Mailbox Holds"
189+
value={
190+
isLoading ? (
191+
<Skeleton variant="text" width={200} />
192+
) : (
193+
<div>
194+
{holds.map((hold) => (
195+
<Chip
196+
key={hold.name}
197+
label={hold.name}
198+
icon={hold.enabled ? <CheckIcon /> : <CloseIcon />}
199+
color={hold.enabled ? "success" : "default"}
200+
variant="outlined"
201+
size="small"
202+
sx={{ mr: 1, mb: 1 }}
203+
/>
204+
))}
205+
</div>
206+
)
207+
}
208+
/>
178209
{/* Combine protocols into a single PropertyListItem */}
179210
<PropertyListItem
180211
divider

0 commit comments

Comments
 (0)