revamp template
This commit is contained in:
18
src/errors/ErrorsRouting.tsx
Normal file
18
src/errors/ErrorsRouting.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
import { Navigate, Route, Routes } from 'react-router-dom';
|
||||
|
||||
import { ErrorsLayout } from '@/layouts/errors';
|
||||
import { Error404Page } from './Error404Page';
|
||||
import { Error500Page } from './Error500Page';
|
||||
|
||||
const ErrorsRouting = () => (
|
||||
<Routes>
|
||||
<Route element={<ErrorsLayout />}>
|
||||
<Route index element={<Error404Page />} />
|
||||
<Route path="404" element={<Error404Page />} />
|
||||
<Route path="500" element={<Error500Page />} />
|
||||
<Route path="*" element={<Navigate to="/error/404" />} />
|
||||
</Route>
|
||||
</Routes>
|
||||
);
|
||||
|
||||
export { ErrorsRouting };
|
||||
Reference in New Issue
Block a user