From 0b6041d146b3cf1a51c2b48188a5cde8ac093e07 Mon Sep 17 00:00:00 2001 From: Jose Selesan Date: Tue, 19 May 2026 09:42:31 -0300 Subject: [PATCH] Better complex show --- .../public-booking/public-booking-page.tsx | 152 ++++++++---------- 1 file changed, 65 insertions(+), 87 deletions(-) diff --git a/apps/frontend/src/features/public-booking/public-booking-page.tsx b/apps/frontend/src/features/public-booking/public-booking-page.tsx index 131ef1a..51bff40 100644 --- a/apps/frontend/src/features/public-booking/public-booking-page.tsx +++ b/apps/frontend/src/features/public-booking/public-booking-page.tsx @@ -31,7 +31,6 @@ import { CalendarDays, Camera, Check, - ChevronDown, ChevronLeft, ChevronRight, Clock3, @@ -67,8 +66,8 @@ const bookingFormSchema = z.object({ customerPhone: z .string() .trim() - .min(6, 'Ingresa un telefono valido.') - .max(30, 'El telefono no puede superar los 30 caracteres.'), + .min(6, 'Ingresá un teléfono válido.') + .max(30, 'El teléfono no puede superar los 30 caracteres.'), }); type BookingFormValues = z.infer; @@ -292,10 +291,10 @@ function ProgressSteps({ mobile?: boolean; }) { const steps = [ - { value: 'court', label: 'Elegi cancha' }, - { value: 'time', label: 'Selecciona horario' }, + { value: 'court', label: 'Elegí cancha' }, + { value: 'time', label: 'Seleccioná horario' }, { value: 'details', label: 'Tus datos' }, - { value: 'confirm', label: 'Confirmacion' }, + { value: 'confirm', label: 'Confirmación' }, ]; const activeStep = steps[Math.max(0, Math.min(currentStep - 1, steps.length - 1))]?.value; @@ -379,11 +378,13 @@ function PublicBookingPageChrome({ children, currentStep, completedSteps, + complexName, mobile = false, }: { children: React.ReactNode; currentStep: number; completedSteps: Record; + complexName?: string; mobile?: boolean; }) { const { resolvedTheme } = useTheme(); @@ -403,13 +404,18 @@ function PublicBookingPageChrome({

- Reserva tu cancha + Reservá tu cancha
- de forma rapida y sencilla + de forma rápida y sencilla

- Elegi tu cancha, selecciona el horario y completa tu reserva. + Elegí tu cancha, seleccioná el horario y completá tu reserva.

+ {complexName && ( +

+ {complexName} +

+ )}
@@ -430,29 +436,25 @@ function PublicBookingPageChrome({
- + {complexName && ( +
+
+

{complexName}

+
+
+ )}

- Reserva tu cancha + Reservá tu cancha
- de forma rapida y sencilla + de forma rápida y sencilla

- Elegi tu cancha, selecciona el horario y completa tu reserva. + Elegí tu cancha, seleccioná el horario y completá tu reserva.

@@ -511,27 +513,26 @@ function PublicBookingDesktop(props: BookingShellProps) { const selectedDay = dayOptions.find((option) => option.value === selectedDate); return ( - +