fix(admin): update sidebar and breadcrumb links to point to /admin/dashboard
This commit is contained in:
@@ -201,7 +201,7 @@ const AdminSidebar = ({ isMobileMenuOpen, setIsMobileMenuOpen, appName, enabledM
|
|||||||
fixed lg:static inset-y-0 left-0 z-40 w-[230px] bg-white dark:bg-black border-r border-neutral-200 dark:border-neutral-800/70 flex flex-col h-screen transition-transform duration-[120ms] ease-out
|
fixed lg:static inset-y-0 left-0 z-40 w-[230px] bg-white dark:bg-black border-r border-neutral-200 dark:border-neutral-800/70 flex flex-col h-screen transition-transform duration-[120ms] ease-out
|
||||||
`}>
|
`}>
|
||||||
{/* Logo */}
|
{/* Logo */}
|
||||||
<Link href="/admin" className="px-4 h-12 flex items-center justify-start gap-2 border-b border-neutral-200 dark:border-neutral-800/70">
|
<Link href="/admin/dashboard" className="px-4 h-12 flex items-center justify-start gap-2 border-b border-neutral-200 dark:border-neutral-800/70">
|
||||||
<h1 className="text-neutral-900 dark:text-white font-semibold text-sm">{appName}</h1>
|
<h1 className="text-neutral-900 dark:text-white font-semibold text-sm">{appName}</h1>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
|
|||||||
@@ -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 themeLabel = theme === 'light' ? 'Mode clair' : theme === 'dark' ? 'Mode sombre' : 'Thème système';
|
||||||
|
|
||||||
const buildBreadcrumbs = () => {
|
const buildBreadcrumbs = () => {
|
||||||
const crumbs = [{ label: appName, href: '/admin/' }];
|
const crumbs = [{ label: appName, href: '/admin/dashboard' }];
|
||||||
const after = pathname.replace(/^\/admin\/?/, '');
|
const after = pathname.replace(/^\/admin\/?/, '');
|
||||||
if (!after) return crumbs;
|
if (!after) return crumbs;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user