From 704f308cacde3c70e2f8960c73c5b8a4bca6c9ce Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 28 Apr 2026 01:59:49 +0000 Subject: [PATCH] Update src/app/admin/page.tsx --- src/app/admin/page.tsx | 92 ++++++++++++++++++------------------------ 1 file changed, 40 insertions(+), 52 deletions(-) diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index e8e47aa..0c49483 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -7,65 +7,53 @@ import FooterBase from '@/components/sections/footer/FooterBase'; import { useState } from 'react'; export default function AdminDashboardPage() { - const [appointments, setAppointments] = useState([ - { id: "1", client: "John Doe", service: "Precision Fade", time: "10:00 AM", status: "Confirmed" }, - { id: "2", client: "Mike Smith", service: "Hot Towel Shave", time: "11:30 AM", status: "Confirmed" }, - ]); - - const handleCancel = (id: string) => { - setAppointments(appointments.filter(app => app.id !== id)); - }; + const [activeTab, setActiveTab] = useState('appointments'); return ( - -
-

Appointment Management

-
- - - - - - - - - - - {appointments.map((app) => ( - - - - - - - ))} - -
ClientServiceTimeActions
{app.client}{app.service}{app.time} - -
+ + +
+

Dashboard: {activeTab.charAt(0).toUpperCase() + activeTab.slice(1)}

+
+
+

Admin management tools for {activeTab} will be implemented here.

+
- + + ); -} \ No newline at end of file +} -- 2.49.1