mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 09:19:51 +00:00
Merge pull request #1 from ArnasDon/fix/routing-remove-dashboard-prefix
Fix 404 errors: remove /dashboard prefix from nav links
This commit is contained in:
commit
31e1d83447
@ -234,7 +234,7 @@ export default function DashboardPage() {
|
||||
</h2>
|
||||
</div>
|
||||
<button
|
||||
onClick={() => router.push("/dashboard/inbox")}
|
||||
onClick={() => router.push("/inbox")}
|
||||
className="flex items-center gap-1 text-xs text-emerald-400 hover:text-emerald-300 transition-colors"
|
||||
>
|
||||
View all
|
||||
@ -261,7 +261,7 @@ export default function DashboardPage() {
|
||||
recentConversations.map((conv) => (
|
||||
<button
|
||||
key={conv.id}
|
||||
onClick={() => router.push("/dashboard/inbox")}
|
||||
onClick={() => router.push("/inbox")}
|
||||
className="flex w-full items-center gap-3 px-5 py-3 text-left transition-colors hover:bg-slate-800/50"
|
||||
>
|
||||
<div className="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-emerald-500/10 text-sm font-medium text-emerald-500">
|
||||
|
||||
@ -6,12 +6,12 @@ import { LogOut } from "lucide-react";
|
||||
|
||||
const pageTitles: Record<string, string> = {
|
||||
"/dashboard": "Dashboard",
|
||||
"/dashboard/inbox": "Inbox",
|
||||
"/dashboard/contacts": "Contacts",
|
||||
"/dashboard/pipelines": "Pipelines",
|
||||
"/dashboard/broadcasts": "Broadcasts",
|
||||
"/dashboard/automations": "Automations",
|
||||
"/dashboard/settings": "Settings",
|
||||
"/inbox": "Inbox",
|
||||
"/contacts": "Contacts",
|
||||
"/pipelines": "Pipelines",
|
||||
"/broadcasts": "Broadcasts",
|
||||
"/automations": "Automations",
|
||||
"/settings": "Settings",
|
||||
};
|
||||
|
||||
function getPageTitle(pathname: string): string {
|
||||
|
||||
@ -17,15 +17,15 @@ import {
|
||||
|
||||
const navItems = [
|
||||
{ href: "/dashboard", label: "Dashboard", icon: LayoutDashboard },
|
||||
{ href: "/dashboard/inbox", label: "Inbox", icon: MessageSquare },
|
||||
{ href: "/dashboard/contacts", label: "Contacts", icon: Users },
|
||||
{ href: "/dashboard/pipelines", label: "Pipelines", icon: GitBranch },
|
||||
{ href: "/dashboard/broadcasts", label: "Broadcasts", icon: Radio },
|
||||
{ href: "/dashboard/automations", label: "Automations", icon: Zap },
|
||||
{ href: "/inbox", label: "Inbox", icon: MessageSquare },
|
||||
{ href: "/contacts", label: "Contacts", icon: Users },
|
||||
{ href: "/pipelines", label: "Pipelines", icon: GitBranch },
|
||||
{ href: "/broadcasts", label: "Broadcasts", icon: Radio },
|
||||
{ href: "/automations", label: "Automations", icon: Zap },
|
||||
];
|
||||
|
||||
const bottomNavItems = [
|
||||
{ href: "/dashboard/settings", label: "Settings", icon: Settings },
|
||||
{ href: "/settings", label: "Settings", icon: Settings },
|
||||
];
|
||||
|
||||
export function Sidebar() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user