diff --git a/app/(admin)/admin/dashboard/page.tsx b/app/(admin)/admin/dashboard/page.tsx index 2f41b86..4c7e10d 100644 --- a/app/(admin)/admin/dashboard/page.tsx +++ b/app/(admin)/admin/dashboard/page.tsx @@ -25,6 +25,7 @@ import { import { useAppTheme } from "@/components/ThemeProvider"; import { getAllUsers } from "@/lib/actions/auth"; import { getAppointmentStats, listAppointments } from "@/lib/actions/appointments"; +import { useAuth } from "@/hooks/useAuth"; import { toast } from "sonner"; import type { User } from "@/lib/models/auth"; import type { Appointment } from "@/lib/models/appointments"; @@ -62,6 +63,7 @@ export default function Dashboard() { const [loading, setLoading] = useState(true); const [timePeriod, setTimePeriod] = useState("last_month"); const { theme } = useAppTheme(); + const { user } = useAuth(); const isDark = theme === "dark"; useEffect(() => { @@ -254,7 +256,7 @@ export default function Dashboard() {

- Welcome Back! Hammond + Welcome Back! {user?.first_name || ""}

Here's an overview of your practice today