Remove the no longer used ErrorEmptyState component.

Signed-off-by: Linnéa Ivansson <linnea.ivansson01@gmail.com>
This commit is contained in:
Linnéa Ivansson
2022-11-21 14:49:34 +01:00
parent b1ee867101
commit 54017517f9
@@ -91,31 +91,6 @@ const sortBySeverity = (a: DetectedError, b: DetectedError) => {
return 0;
};
export const ErrorEmptyState = () => {
return (
<Grid
container
justifyContent="space-around"
direction="row"
alignItems="center"
spacing={2}
>
<Grid item xs={4}>
<Typography variant="h5">
Nice! There are no errors to report!
</Typography>
</Grid>
<Grid item xs={4}>
<img
src={EmptyStateImage}
alt="EmptyState"
data-testid="emptyStateImg"
/>
</Grid>
</Grid>
);
};
export const ErrorReporting = ({ detectedErrors }: ErrorReportingProps) => {
const errors = Array.from(detectedErrors.values())
.flat()
@@ -123,7 +98,7 @@ export const ErrorReporting = ({ detectedErrors }: ErrorReportingProps) => {
return (
<>
{errors.length !== 0 &&
{errors.length !== 0 &&
<Table
title="Error Reporting"
data={errors}