|
Last change
on this file since badbc79 was badbc79, checked in by Luka Cheshlarov <luka.cheshlarov@…>, 20 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
372 bytes
|
| Line | |
|---|
| 1 | import { useRouteError } from "react-router-dom";
|
|---|
| 2 |
|
|---|
| 3 | export default function ErrorPage() {
|
|---|
| 4 | const error = useRouteError();
|
|---|
| 5 |
|
|---|
| 6 | return (
|
|---|
| 7 | <div id="error-page">
|
|---|
| 8 | <h1>Oops!</h1>
|
|---|
| 9 | <p>Sorry, an unexpected error has occurred.</p>
|
|---|
| 10 | <p>
|
|---|
| 11 | <i>{error?.statusText || error?.message}</i>
|
|---|
| 12 | </p>
|
|---|
| 13 | </div>
|
|---|
| 14 | );
|
|---|
| 15 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.