mirror of
https://github.com/complexcaresolutions/dak.c2s.git
synced 2026-03-17 18:23:42 +00:00
feat: add disclosure admin route and sidebar entry
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
810a13b2d8
commit
31a2d5a355
2 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ import { ReportsPage } from '@/pages/ReportsPage'
|
|||
import { AdminUsersPage } from '@/pages/AdminUsersPage'
|
||||
import { AdminInvitationsPage } from '@/pages/AdminInvitationsPage'
|
||||
import { AdminAuditPage } from '@/pages/AdminAuditPage'
|
||||
import { DisclosuresPage } from '@/pages/DisclosuresPage'
|
||||
import { AccountPage } from '@/pages/AccountPage'
|
||||
|
||||
function App() {
|
||||
|
|
@ -34,6 +35,7 @@ function App() {
|
|||
<Route path="admin/users" element={<ProtectedRoute requireAdmin><AdminUsersPage /></ProtectedRoute>} />
|
||||
<Route path="admin/invitations" element={<ProtectedRoute requireAdmin><AdminInvitationsPage /></ProtectedRoute>} />
|
||||
<Route path="admin/audit" element={<ProtectedRoute requireAdmin><AdminAuditPage /></ProtectedRoute>} />
|
||||
<Route path="admin/disclosures" element={<ProtectedRoute requireAdmin><DisclosuresPage /></ProtectedRoute>} />
|
||||
</Route>
|
||||
</Routes>
|
||||
</AuthProvider>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import {
|
|||
Mail,
|
||||
History,
|
||||
UserCog,
|
||||
ShieldCheck,
|
||||
} from 'lucide-react'
|
||||
|
||||
interface NavItem {
|
||||
|
|
@ -37,6 +38,7 @@ const accountNavItems: NavItem[] = [
|
|||
]
|
||||
|
||||
const adminNavItems: NavItem[] = [
|
||||
{ label: 'Freigabe-Anfragen', to: '/admin/disclosures', icon: ShieldCheck },
|
||||
{ label: 'Benutzer', to: '/admin/users', icon: Users },
|
||||
{ label: 'Einladungen', to: '/admin/invitations', icon: Mail },
|
||||
{ label: 'Audit-Log', to: '/admin/audit', icon: History },
|
||||
|
|
|
|||
Loading…
Reference in a new issue