From f257d3c7e22f929965e71e5eec4c2ec5254e696f Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 27 May 2023 01:38:46 -0600 Subject: Añade página de error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/error_page.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/components/error_page.tsx (limited to 'src/components') 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( + +
+
+

+ Error {error.status} +

+
+
+ {error.error.message || error.statusText} +
+
+
+ ); +} \ No newline at end of file -- cgit v1.2.3