From 2c73d4d196c096942e4ea6ccc57c4e33188a7e52 Mon Sep 17 00:00:00 2001 From: ghaddaditw <40211818-ghaddaditw@users.noreply.replit.com> Date: Sun, 8 Jun 2025 15:21:22 +0000 Subject: [PATCH] Add navigation button to return to dashboard from various pages Introduces `PageHeader` component with a back-to-dashboard button and integrates it into AIPage, AnalyticsPage, FinancesPage, TasksPage, and VoicePage. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d7e7c4e8-20cb-41c4-9d0e-79f48938fede --- client/src/components/ui/page-header.tsx | 50 ++++++++ client/src/pages/AIPage.tsx | 1 + client/src/pages/AnalyticsPage.tsx | 1 + client/src/pages/FinancesPage.tsx | 1 + client/src/pages/TasksPage.tsx | 144 +++++++++++------------ client/src/pages/VoicePage.tsx | 1 + 6 files changed, 126 insertions(+), 72 deletions(-) create mode 100644 client/src/components/ui/page-header.tsx diff --git a/client/src/components/ui/page-header.tsx b/client/src/components/ui/page-header.tsx new file mode 100644 index 0000000..4250860 --- /dev/null +++ b/client/src/components/ui/page-header.tsx @@ -0,0 +1,50 @@ +import { Link } from "wouter"; +import { Button } from "@/components/ui/button"; +import { ArrowLeft } from "lucide-react"; +import { cn } from "@/lib/utils"; + +interface PageHeaderProps { + title: string; + description?: string; + showBackToDashboard?: boolean; + className?: string; + children?: React.ReactNode; +} + +export function PageHeader({ + title, + description, + showBackToDashboard = true, + className, + children +}: PageHeaderProps) { + return ( +
+ {description} +
+ )} +- Manage your tasks and track your progress -
-