refactor: rename Error components to ErrorPage (#2668)

This commit is contained in:
Gauthier
2026-03-10 21:40:05 +01:00
committed by GitHub
parent 6aa4745285
commit d5c5f1ff79
35 changed files with 71 additions and 71 deletions

View File

@@ -10,7 +10,7 @@ import useDebouncedState from '@app/hooks/useDebouncedState';
import { useUpdateQueryParams } from '@app/hooks/useUpdateQueryParams';
import { Permission, useUser } from '@app/hooks/useUser';
import globalMessages from '@app/i18n/globalMessages';
import Error from '@app/pages/_error';
import ErrorPage from '@app/pages/_error';
import defineMessages from '@app/utils/defineMessages';
import {
ChevronLeftIcon,
@@ -90,7 +90,7 @@ const Blocklist = () => {
// check if there's no data and no errors in the table
// so as to show a spinner inside the table and not refresh the whole component
if (!data && error) {
return <Error statusCode={500} />;
return <ErrorPage statusCode={500} />;
}
const searchItem = (e: ChangeEvent<HTMLInputElement>) => {