Skip to content

Commit

Permalink
fix: update test headers alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 9, 2021
1 parent b4c3583 commit 451e2bd
Show file tree
Hide file tree
Showing 4 changed files with 1,324 additions and 1,252 deletions.
10 changes: 5 additions & 5 deletions ui/blocks/src/TestsCoverage/BaseTestsCoverage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const BaseTestsCoverage: FC<BaseTestsCoverageProps> = ({
},
},
{
Header: 'Total',
Header: <div sx={{ textAlign: 'center' }}>Total</div>,
accessor: 'total',
Cell: ({ value }) => (
<div
Expand All @@ -63,7 +63,7 @@ export const BaseTestsCoverage: FC<BaseTestsCoverageProps> = ({
),
},
{
Header: 'Covered',
Header: <div sx={{ textAlign: 'center' }}>Covered</div>,
accessor: 'covered',
Cell: ({ value }) => (
<div
Expand All @@ -78,7 +78,7 @@ export const BaseTestsCoverage: FC<BaseTestsCoverageProps> = ({
),
},
{
Header: 'Skipped',
Header: <div sx={{ textAlign: 'center' }}>Skipped</div>,
accessor: 'skipped',
Cell: ({ value }) => (
<div
Expand All @@ -93,7 +93,7 @@ export const BaseTestsCoverage: FC<BaseTestsCoverageProps> = ({
),
},
{
Header: '%',
Header: <div sx={{ textAlign: 'center' }}>%</div>,
accessor: 'pct',
Cell: ({ value }) =>
theme?.colors ? (
Expand All @@ -117,7 +117,7 @@ export const BaseTestsCoverage: FC<BaseTestsCoverageProps> = ({
) : null,
},
] as Column<TestRow>[];
}, []);
}, [theme.colors]);
const data = useMemo(() => {
const coverage = component?.jest?.coverage;
return coverage
Expand Down
Loading

0 comments on commit 451e2bd

Please sign in to comment.