File tree 1 file changed +7
-1
lines changed
webpack/assets/javascripts/react_app/components/HostDetails/Templates/CardItem/CardTemplate
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const CardTemplate = ({
22
22
overrideGridProps,
23
23
overrideDropdownProps,
24
24
masonryLayout,
25
+ ouiaId,
25
26
} ) => {
26
27
const { cardExpandStates, dispatch, registerCard } = useContext (
27
28
CardExpansionContext
@@ -60,7 +61,10 @@ const CardTemplate = ({
60
61
{ ...overrideGridProps }
61
62
className = "masonry-item"
62
63
>
63
- < Card isExpanded = { isExpanded } ouiaId = { `card-template-${ cardId } ` } >
64
+ < Card
65
+ isExpanded = { isExpanded }
66
+ ouiaId = { `card-template-${ ouiaId || cardId } ` }
67
+ >
64
68
< CardHeader
65
69
onExpand = { expandable && onExpandCallback }
66
70
isToggleRightAligned
@@ -101,6 +105,7 @@ CardTemplate.propTypes = {
101
105
overrideDropdownProps : PropTypes . object ,
102
106
expandable : PropTypes . bool ,
103
107
masonryLayout : PropTypes . bool ,
108
+ ouiaId : PropTypes . string ,
104
109
} ;
105
110
106
111
CardTemplate . defaultProps = {
@@ -110,6 +115,7 @@ CardTemplate.defaultProps = {
110
115
overrideDropdownProps : { } ,
111
116
expandable : false ,
112
117
masonryLayout : false ,
118
+ ouiaId : undefined ,
113
119
} ;
114
120
115
121
export default CardTemplate ;
You can’t perform that action at this time.
0 commit comments