Commit 14d7729 1 parent a28fe18 commit 14d7729 Copy full SHA for 14d7729
File tree 1 file changed +21
-8
lines changed
src/components/CippStandards
1 file changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -159,17 +159,30 @@ const CippStandardAccordion = ({
159
159
{ selectedActions && selectedActions ?. length > 0 && (
160
160
< Stack direction = "row" spacing = { 1 } sx = { { my : 0.5 } } >
161
161
{ selectedActions ?. map ( ( action , index ) => (
162
- < Chip
163
- key = { index }
164
- label = { action . label }
165
- color = "info"
166
- variant = "outlined"
167
- size = "small"
168
- sx = { { mr : 1 } }
169
- />
162
+ < >
163
+ < Chip
164
+ key = { index }
165
+ label = { action . label }
166
+ color = "info"
167
+ variant = "outlined"
168
+ size = "small"
169
+ sx = { { mr : 1 } }
170
+ />
171
+ < Chip
172
+ key = { index }
173
+ label = { standard ?. impact }
174
+ color = { standard ?. impact === "High Impact" ? "error" : "info" }
175
+ variant = "outlined"
176
+ size = "small"
177
+ sx = { { mr : 1 } }
178
+ />
179
+ </ >
170
180
) ) }
171
181
</ Stack >
172
182
) }
183
+ {
184
+ //add a chip that shows the impact
185
+ }
173
186
< Typography variant = "body2" color = "textSecondary" >
174
187
{ standard . helpText }
175
188
</ Typography >
You can’t perform that action at this time.
0 commit comments