From 13b8bcd38a6388ef1cd4c5dad3b875f973121a18 Mon Sep 17 00:00:00 2001 From: Hardik Date: Sun, 17 May 2026 01:58:32 +0530 Subject: [PATCH] feat(mobile): add Home/Dashboard tab to mobile bottom nav Prepend a Home tab (linking to /dashboard) to the bottom navigation bar for both Manager/SuperUser and Accounts roles, giving one-tap access to the dashboard from any mobile screen. Co-Authored-By: Claude Sonnet 4.6 --- .../components/layout/mobile-bottom-nav.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/App/pelagia-portal/components/layout/mobile-bottom-nav.tsx b/App/pelagia-portal/components/layout/mobile-bottom-nav.tsx index d598dde..130b5d7 100644 --- a/App/pelagia-portal/components/layout/mobile-bottom-nav.tsx +++ b/App/pelagia-portal/components/layout/mobile-bottom-nav.tsx @@ -2,18 +2,20 @@ import Link from "next/link"; import { usePathname } from "next/navigation"; -import { CheckSquare, CreditCard, UserCircle } from "lucide-react"; +import { CheckSquare, CreditCard, UserCircle, LayoutDashboard } from "lucide-react"; import { cn } from "@/lib/utils"; import type { Role } from "@prisma/client"; const MANAGER_TABS = [ - { href: "/approvals", label: "Approvals", icon: CheckSquare }, - { href: "/profile", label: "Profile", icon: UserCircle }, + { href: "/dashboard", label: "Home", icon: LayoutDashboard }, + { href: "/approvals", label: "Approvals", icon: CheckSquare }, + { href: "/profile", label: "Profile", icon: UserCircle }, ]; const ACCOUNTS_TABS = [ - { href: "/payments", label: "Payments", icon: CreditCard }, - { href: "/profile", label: "Profile", icon: UserCircle }, + { href: "/dashboard", label: "Home", icon: LayoutDashboard }, + { href: "/payments", label: "Payments", icon: CreditCard }, + { href: "/profile", label: "Profile", icon: UserCircle }, ]; function tabsForRole(role: Role) {