summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-05-27 01:38:46 -0600
committerHombreLaser <sebastian-440@live.com>2023-05-27 01:38:46 -0600
commitf257d3c7e22f929965e71e5eec4c2ec5254e696f (patch)
tree06b8797a95bf48b3d75056effeb4f83f7e3c32d7 /src/components
parent01ce6eff03e4c427e12d9b2b23ed540698016fa9 (diff)
Añade página de error
Diffstat (limited to 'src/components')
-rw-r--r--src/components/error_page.tsx22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/components/error_page.tsx b/src/components/error_page.tsx
new file mode 100644
index 0000000..3c479be
--- /dev/null
+++ b/src/components/error_page.tsx
@@ -0,0 +1,22 @@
+import { useRouteError } from "react-router-dom";
+import "./stylesheets/shared.css";
+import MainContentLayout from "./main_content_layout";
+
+export default function ErrorPage() {
+ const error = useRouteError();
+
+ return(
+ <MainContentLayout>
+ <div className="flex flex-col justify-center my-2">
+ <div>
+ <h1 className="text-3xl">
+ Error {error.status}
+ </h1>
+ </div>
+ <div className="text-xl">
+ {error.error.message || error.statusText}
+ </div>
+ </div>
+ </MainContentLayout>
+ );
+} \ No newline at end of file