- 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>
27 lines
727 B
TypeScript
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>
|
|
);
|
|
}
|