diff --git a/components/CustomError.tsx b/components/CustomError.tsx index a358c97..6508fc7 100644 --- a/components/CustomError.tsx +++ b/components/CustomError.tsx @@ -1,9 +1,7 @@ import { FC } from "react"; -import Head from "next/head"; -import { Stack, VStack, HStack, Heading, Text, Icon, useColorModeValue } from "@chakra-ui/react"; +import { Stack, HStack, Heading, Text, Icon, useColorModeValue } from "@chakra-ui/react"; import { FaSadTear } from "react-icons/fa"; -import Header from "./Header"; -import Footer from "./Footer"; +import Layout from "./Layout"; const statusTexts: { [key: string]: string @@ -20,38 +18,26 @@ type Props = { }; const CustomError: FC = ({ statusCode }) => ( - <> - - - {statusCode} - {statusTexts?.[statusCode] ?? statusTexts.fallback} - - - - - -
- - - - {statusCode} - - - - - {statusTexts?.[statusCode] ?? statusTexts.fallback} - - -