Files
Spanglish/frontend/src/app/(public)/components/NextEventSectionWrapper.tsx
Michilis 958181e049 Mobile-friendly admin pages, redesigned homepage Next Event card
- Extract shared mobile components (BottomSheet, MoreMenu, Dropdown, etc.) into MobileComponents.tsx
- Make admin pages mobile-friendly: bookings, emails, events, faq, payments, tickets, users
- Redesign homepage Next Event card with banner image, responsive layout, and updated styling
- Fix past events showing on homepage/linktree: use proper Date comparison, auto-unfeature expired events
- Add "Over" tag to admin events list for past events
- Fix backend FRONTEND_URL for cache revalidation

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-18 03:27:49 +00:00

27 lines
727 B
TypeScript

'use client';
import { useLanguage } from '@/context/LanguageContext';
import NextEventSection from './NextEventSection';
import { Event } from '@/lib/api';
interface NextEventSectionWrapperProps {
initialEvent?: Event | null;
}
export default function NextEventSectionWrapper({ initialEvent }: NextEventSectionWrapperProps) {
const { t } = useLanguage();
return (
<section className="section-padding bg-white">
<div className="container-page">
<h2 className="section-title text-center">
{t('home.nextEvent.title')}
</h2>
<div className="mt-12 max-w-4xl mx-auto">
<NextEventSection initialEvent={initialEvent} />
</div>
</div>
</section>
);
}