fix(admin): update sidebar and breadcrumb links to point to /admin/dashboard
This commit is contained in:
@@ -36,7 +36,7 @@ const AdminTop = ({ isMobileMenuOpen, setIsMobileMenuOpen, user, onLogout, appNa
|
||||
const themeLabel = theme === 'light' ? 'Mode clair' : theme === 'dark' ? 'Mode sombre' : 'Thème système';
|
||||
|
||||
const buildBreadcrumbs = () => {
|
||||
const crumbs = [{ label: appName, href: '/admin/' }];
|
||||
const crumbs = [{ label: appName, href: '/admin/dashboard' }];
|
||||
const after = pathname.replace(/^\/admin\/?/, '');
|
||||
if (!after) return crumbs;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user