From aca0d3be8bef5ea40797853bc6841fb8d2aedbb5 Mon Sep 17 00:00:00 2001 From: Arnas Donauskas <61235555+ArnasDon@users.noreply.github.com> Date: Sun, 19 Apr 2026 12:14:24 +0300 Subject: [PATCH] Revert "feat(mobile): app shell drawer + responsive header" --- src/app/(dashboard)/dashboard-shell.tsx | 14 +- src/components/layout/header.tsx | 37 +--- src/components/layout/sidebar.tsx | 264 +++++++++--------------- 3 files changed, 113 insertions(+), 202 deletions(-) diff --git a/src/app/(dashboard)/dashboard-shell.tsx b/src/app/(dashboard)/dashboard-shell.tsx index 24a4afb..68c4d51 100644 --- a/src/app/(dashboard)/dashboard-shell.tsx +++ b/src/app/(dashboard)/dashboard-shell.tsx @@ -1,6 +1,6 @@ "use client"; -import { useCallback, useEffect, useState } from "react"; +import { useEffect } from "react"; import { useRouter } from "next/navigation"; import { AuthProvider, useAuth } from "@/hooks/use-auth"; import { Sidebar } from "@/components/layout/sidebar"; @@ -14,11 +14,6 @@ function DashboardShellInner({ children }: { children: React.ReactNode }) { const { user, loading } = useAuth(); const router = useRouter(); - // Sidebar drawer state — only used on mobile. On lg+ the sidebar is - // always visible and this stays at `false` (ignored by the component). - const [sidebarOpen, setSidebarOpen] = useState(false); - const closeSidebar = useCallback(() => setSidebarOpen(false), []); - useEffect(() => { if (!loading && !user) { router.push("/login"); @@ -40,11 +35,10 @@ function DashboardShellInner({ children }: { children: React.ReactNode }) { return (