mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:59:45 +00:00
Рефактор: распределение компонентов и страниц по папкам
This commit is contained in:
1 parent
d96a8c564f
commit
8d43bec068
16 files changed
+41
-25
No files matched your search
Executable
+19
@@ -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>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './ErrorPage';
|
||||
Reference in new issue
Block a user