From 7b0a2b0c40334be9c5966e1f300577e22666095e Mon Sep 17 00:00:00 2001 From: Marco Gallegos Date: Sun, 18 Jan 2026 23:55:35 -0600 Subject: [PATCH] fix: Remove duplicate code in date-picker.tsx causing syntax error --- components/booking/date-picker.tsx | 78 ------------------------------ 1 file changed, 78 deletions(-) diff --git a/components/booking/date-picker.tsx b/components/booking/date-picker.tsx index ffb03be..cb0bb8e 100644 --- a/components/booking/date-picker.tsx +++ b/components/booking/date-picker.tsx @@ -130,82 +130,4 @@ export default function DatePicker({ selectedDate, onDateSelect, minDate, disabl ) -} - return false - } - - const isDateSelected = (date: Date) => { - return selectedDate && isSameDay(date, selectedDate) - } - - return ( -
-
- -

- {format(currentMonth, 'MMMM yyyy', { locale: es })} -

- -
- -
- {['L', 'M', 'X', 'J', 'V', 'S', 'D'].map((day, index) => ( -
- {day} -
- ))} -
- -
- {days.map((date, index) => { - const disabled = isDateDisabled(date) - const selected = isDateSelected(date) - const today = isToday(date) - const notCurrentMonth = !isSameMonth(date, currentMonth) - - return ( - - ) - })} -
-
- ) } \ No newline at end of file