diff --git a/client/src/components/classes/classes-section.tsx b/client/src/components/classes/classes-section.tsx index ff2cbe3..337e66b 100644 --- a/client/src/components/classes/classes-section.tsx +++ b/client/src/components/classes/classes-section.tsx @@ -18,65 +18,26 @@ export function ClassesSection() { const handleBookClick = (classId: number) => { setSelectedClassId(classId); - - // Scroll to booking calendar - const bookingCalendar = document.getElementById("booking-calendar"); - if (bookingCalendar) { - bookingCalendar.scrollIntoView({ behavior: "smooth" }); + const element = document.getElementById('booking-calendar'); + if (element) { + element.scrollIntoView({ behavior: 'smooth' }); } }; - if (error) { - return ( -
Error loading classes. Please try again later.
-- Choose from our variety of class options designed to match your individual needs + Join our supportive, personalized classes where you'll discover strength, flexibility, and mindfulness.
Foundational strength, posture, and mobility
-Deeper resistance, alignment, and control
-For those new to movement or Pilates
-Accessible from anywhere
-Special themed sessions and gatherings
-Error loading classes. Please try again later.
+