From 7f9b481c132e0face23420ff0afe0e2791a9c206 Mon Sep 17 00:00:00 2001 From: 230417 <230417@epvc.pt> Date: Tue, 16 Jun 2026 17:02:11 +0100 Subject: [PATCH] feat(web): sync profile redesign and booking redirect --- web/src/pages/Booking.tsx | 2 +- web/src/pages/Profile.tsx | 43 ++++++++------------------------------- 2 files changed, 9 insertions(+), 36 deletions(-) diff --git a/web/src/pages/Booking.tsx b/web/src/pages/Booking.tsx index 2486073..ff5c312 100644 --- a/web/src/pages/Booking.tsx +++ b/web/src/pages/Booking.tsx @@ -150,7 +150,7 @@ export default function Booking() { if (!canSubmit) return; const appt = await createAppointment({ shopId: shop.id, serviceId, barberId, customerId: user.id, date: `${date} ${slot}` }); if (appt) { - navigate('/perfil'); + navigate('/explorar'); } else { alert('Horário indisponível ou ocorreu um erro a comunicar com o servidor.'); } diff --git a/web/src/pages/Profile.tsx b/web/src/pages/Profile.tsx index 57d8451..bd31018 100644 --- a/web/src/pages/Profile.tsx +++ b/web/src/pages/Profile.tsx @@ -172,33 +172,10 @@ export default function Profile() { - {/* Floating Navigation Tabs */} -
-
- {[ - { id: 'favoritos', label: 'Favoritos', icon: Heart, color: 'text-rose-500' }, - { id: 'agenda', label: 'Agenda', icon: Calendar, color: 'text-indigo-500' }, - { id: 'pedidos', label: 'Pedidos', icon: ShoppingBag, color: 'text-emerald-500' }, - ].map((t) => ( - - ))} -
-
- - {/* Tab Content with Animation */} -
- {activeTab === 'favoritos' && ( + {/* No Tab Bar - Vertical Layout */} + {/* Vertical Content Sections */} +
+ {/* Section: Agenda */}

Cofre de Favoritos

@@ -244,10 +221,9 @@ export default function Profile() {
)}
- )} - {activeTab === 'agenda' && ( -
+ {/* Section: Favoritos */} +

Minha Agenda

{myAppointments.length} RESERVAS @@ -320,10 +296,9 @@ export default function Profile() {
)}
- )} - {activeTab === 'pedidos' && ( -
+ {/* Section: Pedidos */} +

Meus Pedidos

{myOrders.length} ITEMS @@ -373,8 +348,6 @@ export default function Profile() {
)}
- )} -
)