From 4876decb26a354a483d2ee1270763db249302508 Mon Sep 17 00:00:00 2001 From: Paul Pan Date: Wed, 21 Feb 2024 22:47:04 +0800 Subject: [PATCH] feat: refined ErrorPage --- src/pages/ErrorPage.tsx | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/src/pages/ErrorPage.tsx b/src/pages/ErrorPage.tsx index 5d1e3f1..7be7099 100644 --- a/src/pages/ErrorPage.tsx +++ b/src/pages/ErrorPage.tsx @@ -1,5 +1,6 @@ import { isRouteErrorResponse, useNavigate, useRouteError } from "react-router-dom"; -import { Alert, AlertDescription, AlertIcon, AlertTitle, Button, ButtonGroup } from "@chakra-ui/react"; +import { Box, Button, ButtonGroup, Flex, Heading, Text } from "@chakra-ui/react"; +import { CloseIcon } from "@chakra-ui/icons"; export const ErrorPage = () => { const navigate = useNavigate(); @@ -19,21 +20,27 @@ export const ErrorPage = () => { }; return ( - - - - {" "} - Sorry, an unexpected error has occurred.{" "} - - {convertError(error)} + + + + + + + + Sorry, an unexpected error has occurred. + + + {convertError(error)} + - + ); };