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 <noreply@anthropic.com>
This commit is contained in:
parent
7ae1189042
commit
13b8bcd38a
1 changed files with 7 additions and 5 deletions
|
|
@ -2,16 +2,18 @@
|
||||||
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { usePathname } from "next/navigation";
|
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 { cn } from "@/lib/utils";
|
||||||
import type { Role } from "@prisma/client";
|
import type { Role } from "@prisma/client";
|
||||||
|
|
||||||
const MANAGER_TABS = [
|
const MANAGER_TABS = [
|
||||||
|
{ href: "/dashboard", label: "Home", icon: LayoutDashboard },
|
||||||
{ href: "/approvals", label: "Approvals", icon: CheckSquare },
|
{ href: "/approvals", label: "Approvals", icon: CheckSquare },
|
||||||
{ href: "/profile", label: "Profile", icon: UserCircle },
|
{ href: "/profile", label: "Profile", icon: UserCircle },
|
||||||
];
|
];
|
||||||
|
|
||||||
const ACCOUNTS_TABS = [
|
const ACCOUNTS_TABS = [
|
||||||
|
{ href: "/dashboard", label: "Home", icon: LayoutDashboard },
|
||||||
{ href: "/payments", label: "Payments", icon: CreditCard },
|
{ href: "/payments", label: "Payments", icon: CreditCard },
|
||||||
{ href: "/profile", label: "Profile", icon: UserCircle },
|
{ href: "/profile", label: "Profile", icon: UserCircle },
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue