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 { useRoutes } from 'react-router-dom';
|
||||||
import dynamic from 'next/dynamic';
|
import dynamic from 'next/dynamic';
|
||||||
import { t } from '@vegaprotocol/react-helpers';
|
import { t } from '@vegaprotocol/react-helpers';
|
||||||
|
import { Splash } from '@vegaprotocol/ui-toolkit';
|
||||||
|
|
||||||
const LazyHome = dynamic(() => import('../client-pages/home'), {
|
const LazyHome = dynamic(() => import('../client-pages/home'), {
|
||||||
ssr: false,
|
ssr: false,
|
||||||
@ -50,6 +51,14 @@ const routerConfig = [
|
|||||||
path: Routes.PORTFOLIO,
|
path: Routes.PORTFOLIO,
|
||||||
element: <LazyPortfolio />,
|
element: <LazyPortfolio />,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '*',
|
||||||
|
element: (
|
||||||
|
<Splash>
|
||||||
|
<p>{t('Not found')}</p>
|
||||||
|
</Splash>
|
||||||
|
),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const ClientRouter = () => {
|
export const ClientRouter = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user