Apply migrations for React Router 5.1 (#3112)
This commit is contained in:
parent
b8fe0bdc05
commit
936d02150b
1 changed files with 4 additions and 3 deletions
|
@ -99,11 +99,12 @@ export const App = ({ keycloak, adminClient }: AdminClientProps) => {
|
|||
<Switch>
|
||||
{routes.map((route, i) => (
|
||||
<Route
|
||||
exact={route.matchOptions?.exact ?? true}
|
||||
key={i}
|
||||
path={route.path}
|
||||
component={() => <SecuredRoute route={route} />}
|
||||
/>
|
||||
exact={route.matchOptions?.exact ?? true}
|
||||
>
|
||||
<SecuredRoute route={route} />
|
||||
</Route>
|
||||
))}
|
||||
</Switch>
|
||||
</ServerInfoProvider>
|
||||
|
|
Loading…
Reference in a new issue