Skip to content

Commit

Permalink
Add settings links to user/admin dashboard (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirAgassi authored Feb 6, 2025
2 parents 9644c1b + cd984a8 commit 0bf3784
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/admin/_auth/_appshell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ 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', icon: <FiSettings /> },
{ label: 'Settings', path: '/admin/settings/permissions', icon: <FiSettings /> },
];

function RouteComponent() {
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/pages/user/_auth/_appshell.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import { FiFolder, FiBook, FiStar, FiUser } from 'react-icons/fi';
import { FiFolder } from 'react-icons/fi';
import { FiFolder, FiSettings } from 'react-icons/fi';
import { DashboardTemplate } from '@templates';
import { createFileRoute, Outlet, Link } from '@tanstack/react-router';
import { useLocation } from '@tanstack/react-router';
Expand All @@ -11,9 +11,11 @@ export const Route = createFileRoute('/user/_auth/_appshell')({

const userMenuItems = [
{ label: 'My Projects', path: '/user/dashboard', icon: <FiFolder /> },
{ label: 'Settings', path: '/user/settings', icon: <FiSettings /> },
// { label: 'Resources', path: '/resources', icon: <FiBook /> },
// { label: 'Favorites', path: '/favorites', icon: <FiStar /> },
// { label: 'Profile', path: '/profile', icon: <FiUser /> },

];

// const userNavTabs = [
Expand Down

0 comments on commit 0bf3784

Please sign in to comment.