feat: introduce admin apps page (#1296)

* feat: introduce admin apps page

* feat: add access restriction and fix incorrectly placed key prop
This commit is contained in:
kattoczko
2023-10-05 09:55:00 +01:00
committed by GitHub
parent 82c1aadfa9
commit 584b9323ec
8 changed files with 102 additions and 7 deletions

View File

@@ -11,6 +11,7 @@ import UserInterface from 'pages/UserInterface';
import * as URLS from 'config/urls';
import Can from 'components/Can';
import AdminApplications from 'pages/AdminApplications';
// TODO: consider introducing redirections to `/` as fallback
export default (
@@ -107,6 +108,17 @@ export default (
}
/>
<Route
path={URLS.ADMIN_APPS}
element={
<Can I="update" a="App">
<AdminSettingsLayout>
<AdminApplications />
</AdminSettingsLayout>
</Can>
}
/>
<Route
path={URLS.ADMIN_SETTINGS}
element={<Navigate to={URLS.USERS} replace />}