Apply migrations for React Router 5.1 (#3112)

This commit is contained in:
Jon Koops 2022-08-15 18:34:00 +02:00 committed by GitHub
parent b8fe0bdc05
commit 936d02150b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>