Skip to content

Commit c65c652

Browse files
authored
Merge pull request #4187 from Jr7468/MailPermissions
Enhance CippExchangeSettingsForm and user exchange page with mailbox permissions management
2 parents c72ee07 + 734990d commit c65c652

File tree

3 files changed

+798
-422
lines changed

3 files changed

+798
-422
lines changed

src/components/CippCards/CippBannerListCard.jsx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export const CippBannerListCard = (props) => {
3939
</Box>
4040
</Stack>
4141
<Stack alignItems="center" direction="row" spacing={2}>
42-
<Skeleton variant="circular" width={24} height={24} />
4342
<Skeleton variant="text" width={60} />
43+
<Skeleton variant="circular" width={24} height={24} />
4444
</Stack>
4545
</Stack>
4646
</Card>
@@ -74,7 +74,16 @@ export const CippBannerListCard = (props) => {
7474
direction="row"
7575
flexWrap="wrap"
7676
justifyContent="space-between"
77-
sx={{ p: 3 }}
77+
sx={{
78+
p: 3,
79+
...(isCollapsible && {
80+
cursor: "pointer",
81+
"&:hover": {
82+
bgcolor: "action.hover",
83+
},
84+
}),
85+
}}
86+
onClick={isCollapsible ? () => handleExpand(item.id) : undefined}
7887
>
7988
{/* Left Side: cardLabelBox */}
8089
<Stack direction="row" spacing={2} alignItems="center">
@@ -127,8 +136,16 @@ export const CippBannerListCard = (props) => {
127136
<Typography variant="body2">{item.statusText}</Typography>
128137
</Stack>
129138
)}
139+
{item?.cardLabelBoxActions && (
140+
<Box onClick={(e) => e.stopPropagation()}>{item.cardLabelBoxActions}</Box>
141+
)}
130142
{isCollapsible && (
131-
<IconButton onClick={() => handleExpand(item.id)}>
143+
<IconButton
144+
onClick={(e) => {
145+
e.stopPropagation();
146+
handleExpand(item.id);
147+
}}
148+
>
132149
<SvgIcon
133150
fontSize="small"
134151
sx={{
@@ -190,6 +207,7 @@ CippBannerListCard.propTypes = {
190207
actionButton: PropTypes.element,
191208
isFetching: PropTypes.bool,
192209
children: PropTypes.node,
210+
cardLabelBoxActions: PropTypes.element,
193211
})
194212
).isRequired,
195213
isCollapsible: PropTypes.bool,

0 commit comments

Comments
 (0)