mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 07:29:02 +08:00
fix(FE): app routes type is updated (#383)
This commit is contained in:
parent
20879dcf2e
commit
73b5134971
@ -13,11 +13,9 @@ const App = (): JSX.Element => (
|
|||||||
<AppLayout>
|
<AppLayout>
|
||||||
<Suspense fallback={<Spinner size="large" tip="Loading..." />}>
|
<Suspense fallback={<Spinner size="large" tip="Loading..." />}>
|
||||||
<Switch>
|
<Switch>
|
||||||
{routes.map(({ path, component, exact }) => {
|
{routes.map(({ path, component, exact }, index) => (
|
||||||
return (
|
<Route key={index} exact={exact} path={path} component={component} />
|
||||||
<Route key={path} exact={exact} path={path} component={component} />
|
))}
|
||||||
);
|
|
||||||
})}
|
|
||||||
<Redirect from="/" to={ROUTES.APPLICATION} />
|
<Redirect from="/" to={ROUTES.APPLICATION} />
|
||||||
<Route component={NotFound} />
|
<Route component={NotFound} />
|
||||||
</Switch>
|
</Switch>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user