Skip to content

Commit 14d7729

Browse files
add impact
1 parent a28fe18 commit 14d7729

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

src/components/CippStandards/CippStandardAccordion.jsx

+21-8
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,30 @@ const CippStandardAccordion = ({
159159
{selectedActions && selectedActions?.length > 0 && (
160160
<Stack direction="row" spacing={1} sx={{ my: 0.5 }}>
161161
{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+
</>
170180
))}
171181
</Stack>
172182
)}
183+
{
184+
//add a chip that shows the impact
185+
}
173186
<Typography variant="body2" color="textSecondary">
174187
{standard.helpText}
175188
</Typography>

0 commit comments

Comments
 (0)