feat: add not found catchall page for console (#2359)
This commit is contained in:
parent
97a264d0b8
commit
def34a329d
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user