@@ -39,8 +39,8 @@ export const CippBannerListCard = (props) => {
39
39
</ Box >
40
40
</ Stack >
41
41
< Stack alignItems = "center" direction = "row" spacing = { 2 } >
42
- < Skeleton variant = "circular" width = { 24 } height = { 24 } />
43
42
< Skeleton variant = "text" width = { 60 } />
43
+ < Skeleton variant = "circular" width = { 24 } height = { 24 } />
44
44
</ Stack >
45
45
</ Stack >
46
46
</ Card >
@@ -74,7 +74,16 @@ export const CippBannerListCard = (props) => {
74
74
direction = "row"
75
75
flexWrap = "wrap"
76
76
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 }
78
87
>
79
88
{ /* Left Side: cardLabelBox */ }
80
89
< Stack direction = "row" spacing = { 2 } alignItems = "center" >
@@ -127,8 +136,16 @@ export const CippBannerListCard = (props) => {
127
136
< Typography variant = "body2" > { item . statusText } </ Typography >
128
137
</ Stack >
129
138
) }
139
+ { item ?. cardLabelBoxActions && (
140
+ < Box onClick = { ( e ) => e . stopPropagation ( ) } > { item . cardLabelBoxActions } </ Box >
141
+ ) }
130
142
{ isCollapsible && (
131
- < IconButton onClick = { ( ) => handleExpand ( item . id ) } >
143
+ < IconButton
144
+ onClick = { ( e ) => {
145
+ e . stopPropagation ( ) ;
146
+ handleExpand ( item . id ) ;
147
+ } }
148
+ >
132
149
< SvgIcon
133
150
fontSize = "small"
134
151
sx = { {
@@ -190,6 +207,7 @@ CippBannerListCard.propTypes = {
190
207
actionButton : PropTypes . element ,
191
208
isFetching : PropTypes . bool ,
192
209
children : PropTypes . node ,
210
+ cardLabelBoxActions : PropTypes . element ,
193
211
} )
194
212
) . isRequired ,
195
213
isCollapsible : PropTypes . bool ,
0 commit comments