mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 04:39:59 +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>
|
||||
<Suspense fallback={<Spinner size="large" tip="Loading..." />}>
|
||||
<Switch>
|
||||
{routes.map(({ path, component, exact }) => {
|
||||
return (
|
||||
<Route key={path} exact={exact} path={path} component={component} />
|
||||
);
|
||||
})}
|
||||
{routes.map(({ path, component, exact }, index) => (
|
||||
<Route key={index} exact={exact} path={path} component={component} />
|
||||
))}
|
||||
<Redirect from="/" to={ROUTES.APPLICATION} />
|
||||
<Route component={NotFound} />
|
||||
</Switch>
|
||||
|
Loading…
x
Reference in New Issue
Block a user