Skip to content

Commit

Permalink
Fixes following Michael's review
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJamesC committed Sep 12, 2023
1 parent 7b6d3d9 commit ddec56f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions reports/src/capability/CapabilityTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ export const CapabilityTable = ({
) : (
<>
<CapabilityBreadcrumbs capability={capability} />
<Typography variant="h3" gutterBottom sx={{ marginTop: 1 }}>
<Typography variant="h4" gutterBottom sx={{ marginTop: 1 }}>
Requirements
</Typography>
<RequirementTable capability={capability} />
<Typography variant="h3" gutterBottom sx={{ marginTop: 1 }}>
<Typography variant="h4" gutterBottom sx={{ marginTop: 1 }}>
Child capabilities
</Typography>
<ChildCapabilityTable capability={capability} />
Expand Down
5 changes: 2 additions & 3 deletions reports/src/capability/RequirementTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ const AggregatedStatusTag = ({ checks }: { checks: Check[] }) => {
0
);
const pass = successfulChecks === checks.length;
return (
<Chip label={pass ? "PASS" : "FAIL"} color={pass ? "success" : "error"} />
);
const label = pass ? "PASS" : "FAIL";
return <Chip label={label} color={pass ? "success" : "error"} />;
};

const CheckAggregateRow = ({ checks }: { checks: Check[] }) => {
Expand Down

0 comments on commit ddec56f

Please sign in to comment.