feat: add not found catchall page for console (#2359)

This commit is contained in:
Matthew Russell 2022-12-08 02:47:30 -06:00 committed by GitHub
parent 97a264d0b8
commit def34a329d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ import { Suspense } from 'react';
import { useRoutes } from 'react-router-dom';
import dynamic from 'next/dynamic';
import { t } from '@vegaprotocol/react-helpers';
import { Splash } from '@vegaprotocol/ui-toolkit';
const LazyHome = dynamic(() => import('../client-pages/home'), {
ssr: false,
@ -50,6 +51,14 @@ const routerConfig = [
path: Routes.PORTFOLIO,
element: <LazyPortfolio />,
},
{
path: '*',
element: (
<Splash>
<p>{t('Not found')}</p>
</Splash>
),
},
];
export const ClientRouter = () => {