Skip to content

Commit

Permalink
update the sidebar links for admin
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed Feb 7, 2025
1 parent f0d60bb commit ff86165
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions frontend/src/pages/admin/_auth/_appshell.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
import { createFileRoute, Outlet } from '@tanstack/react-router';
import { FiFolder, FiBook, FiUsers, FiSettings } from 'react-icons/fi';
import { FiFolder, FiSettings } from 'react-icons/fi';
import { DashboardTemplate } from '@templates';

export const Route = createFileRoute('/admin/_auth/_appshell')({
component: RouteComponent,
});

const adminMenuItems = [
{ label: 'Projects', path: '/admin/projects', icon: <FiFolder /> },
{ label: 'Resources', path: '/admin/resources', icon: <FiBook /> },
{ label: 'Users', path: '/admin/users', icon: <FiUsers /> },
{ label: 'Settings', path: '/admin/settings/permissions', icon: <FiSettings /> },
{ label: 'Projects', path: '/admin/dashboard', icon: <FiFolder /> },
// { label: 'Resources', path: '/admin/resources', icon: <FiBook /> },
// { label: 'Users', path: '/admin/users', icon: <FiUsers /> },
{
label: 'Settings',
path: '/admin/settings/permissions',
icon: <FiSettings />,
},
];

function RouteComponent() {
Expand All @@ -35,4 +39,5 @@ function RouteComponent() {
<Outlet />
</DashboardTemplate>
);
}
}

0 comments on commit ff86165

Please sign in to comment.