Remove the no longer used ErrorEmptyState component.
Signed-off-by: Linnéa Ivansson <linnea.ivansson01@gmail.com>
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user