diff --git a/src/components/shell/NotificationsPill.tsx b/src/components/shell/NotificationsPill.tsx index 6ea70d873..f177986e0 100644 --- a/src/components/shell/NotificationsPill.tsx +++ b/src/components/shell/NotificationsPill.tsx @@ -23,14 +23,19 @@ export function NotificationsPill() { else void push.subscribe(); }; + // Icon-only — the bell on/off state communicates the same thing the text + // label used to ("Notifications on" / "Notifications off"). Hover-tooltip + // (title) carries the longer state explanation for users who need it. The + // text-label version visually read as two elements (icon + word) for one + // button; users called it out as confusing duplication. return ( ); } diff --git a/src/components/shell/sidebar/SidebarFooter.tsx b/src/components/shell/sidebar/SidebarFooter.tsx index 285f33b5d..754230334 100644 --- a/src/components/shell/sidebar/SidebarFooter.tsx +++ b/src/components/shell/sidebar/SidebarFooter.tsx @@ -1,15 +1,19 @@ "use client"; -import { useState, useEffect } from "react"; import Link from "next/link"; -import { PanelLeftOpen, PanelLeftClose, LogOut, Lock, Sun, Moon, Settings as SettingsIcon } from "lucide-react"; +import { PanelLeftOpen, PanelLeftClose, LogOut, Lock, Settings as SettingsIcon } from "lucide-react"; import { signOut } from "next-auth/react"; -import { useTheme } from "next-themes"; import { cn } from "@/lib/utils"; import { usePrivateZone } from "@/hooks/use-private-zone"; import { ROUTES } from "@/config/auth"; import { NAV } from "@/config/navigation"; +// The dark-mode toggle used to live here. Moved its sole home to +// Settings → Appearance (AppearanceSettings.tsx) — theme is set-once-and- +// forget, not worth a full-width sidebar slot. The sidebar should hold +// frequent navigation + presence affordances (private-zone lock, sign-out), +// not preference toggles. + export function SidebarFooter({ collapsed, onToggleCollapsed, @@ -18,12 +22,6 @@ export function SidebarFooter({ onToggleCollapsed: () => void; }) { const { unlocked, lock, configured } = usePrivateZone(); - const { resolvedTheme, setTheme } = useTheme(); - const [mounted, setMounted] = useState(false); - // eslint-disable-next-line react-hooks/set-state-in-effect -- standard next-themes SSR hydration guard - useEffect(() => setMounted(true), []); - - const isDark = resolvedTheme !== "light"; return (
@@ -65,22 +63,6 @@ export function SidebarFooter({ {collapsed && Lock private zone} )} - {mounted && ( - - )}