Рефактор: распределение компонентов и страниц по папкам

This commit is contained in:
ifraimka1 committed 2024-02-19 11:33:53 +03:00
1 parent d96a8c564f
commit 8d43bec068
16 files changed
+41 -25

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { useRouteError } from 'react-router-dom'
export default function ErrorPage() {
const error = useRouteError()
console.error(error)
return (
<div
className="align-items-center bg-white d-flex flex-column flex-grow-1 justify-content-center"
id="error-page"
>
<h1 className="mt-0">Oops!</h1>
<p>Sorry, an unexpected error has occurred.</p>
<p>
<i>{error.statusText || error.message}</i>
</p>
</div>
)
}
+1
View File
@@ -0,0 +1 @@
export { default } from './ErrorPage';