From 34b4dda1e21964cce922b8a530a0b1bb275e53f2 Mon Sep 17 00:00:00 2001 From: zuies Date: Mon, 11 Dec 2023 14:33:11 +0300 Subject: [PATCH] remove error page --- src/pages/_error.tsx | 81 -------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 src/pages/_error.tsx diff --git a/src/pages/_error.tsx b/src/pages/_error.tsx deleted file mode 100644 index e4536e89..00000000 --- a/src/pages/_error.tsx +++ /dev/null @@ -1,81 +0,0 @@ -import { NextPageContext, NextComponentType } from 'next'; -import Image from 'next/image'; -import notFounded from '../assets/svg/404.svg'; -import tcLogo from '../assets/svg/tc-logo.svg'; -import CustomButton from '../components/global/CustomButton'; -import { useRouter } from 'next/router'; - -interface ErrorPageProps { - statusCode?: number; -} - -const ErrorPage: NextComponentType< - NextPageContext, - ErrorPageProps, - ErrorPageProps -> = () => { - const router = useRouter(); - - return ( -
-
- Image Alt -
{' '} -
-
- Image Alt -
-
-

- Oops! We’re sorry, we couldn’t find
the page you’re looking - for.{' '} -

-
-

What could have caused this?

-
-

- The link you clicked might be old and does not work anymore. -

-

- Or you might have accidentally typed the wrong URL in the - address bar. -

-
-
-
-

What you can do

-

- You might retype the URL or try some helpful links instead: -

-
-
- router.push('/')} - classes={'text-black'} - variant="outlined" - label={'Community Insights'} - /> - router.push('/centric')} - classes={'text-black'} - variant="outlined" - label={'Connect your community'} - /> -
-
-
-
- ); -}; - -ErrorPage.getInitialProps = ({ res, err }: NextPageContext): ErrorPageProps => { - const statusCode = res ? res.statusCode : err ? err.statusCode : 404; - return { statusCode }; -}; - -export default ErrorPage;