PrestaGhis commited on
Commit
8f1c468
Β·
verified Β·
1 Parent(s): 6760a54

Update components/Sidebar.tsx

Browse files
Files changed (1) hide show
  1. components/Sidebar.tsx +2 -2
components/Sidebar.tsx CHANGED
@@ -258,8 +258,8 @@ export function Sidebar({ isOpen = true, onClose }: SidebarProps) {
258
 
259
  {/* ── HEADER avec MODE SWITCH ────────────────────────────── */}
260
  <div className="p-6 border-b border-[var(--border-subtle)]">
261
- {/* Logo β€” cliquable β†’ Dashboard */}
262
- <Link href="/dashboard" className="flex items-center gap-3 mb-4 group hover:opacity-80 transition-opacity">
263
  <div className={`w-10 h-10 rounded-xl flex items-center justify-center shadow-lg transition-all duration-300 ${
264
  appMode === 'veille'
265
  ? 'bg-[var(--accent)] shadow-[var(--accent-glow)]'
 
258
 
259
  {/* ── HEADER avec MODE SWITCH ────────────────────────────── */}
260
  <div className="p-6 border-b border-[var(--border-subtle)]">
261
+ {/* Logo β€” cliquable β†’ Dashboard / Admin Dashboard */}
262
+ <Link href={profile?.role === 'admin' ? "/admin/dashboard" : "/dashboard"} className="flex items-center gap-3 mb-4 group hover:opacity-80 transition-opacity">
263
  <div className={`w-10 h-10 rounded-xl flex items-center justify-center shadow-lg transition-all duration-300 ${
264
  appMode === 'veille'
265
  ? 'bg-[var(--accent)] shadow-[var(--accent-glow)]'