diff --git a/app/components/AvailabilityCalendar.tsx b/app/components/AvailabilityCalendar.tsx index a011d58..9264eb4 100644 --- a/app/components/AvailabilityCalendar.tsx +++ b/app/components/AvailabilityCalendar.tsx @@ -40,13 +40,21 @@ function buildMonths(monthCount: number, blocked: Set): MonthView[] { return months; } -export default function AvailabilityCalendar({ blockedDates, months = 2 }: { blockedDates: string[]; months?: number }) { +export default function AvailabilityCalendar({ + blockedDates, + months = 2, + disabled = false, +}: { + blockedDates: string[]; + months?: number; + disabled?: boolean; +}) { const { t } = useI18n(); const blockedSet = useMemo(() => new Set(blockedDates), [blockedDates]); const monthViews = useMemo(() => buildMonths(months, blockedSet), [months, blockedSet]); return ( -
+
{t('availabilityTitle')} {t('availabilityLegendBooked')} diff --git a/app/listings/[slug]/page.tsx b/app/listings/[slug]/page.tsx index e22c6fc..ebac9e1 100644 --- a/app/listings/[slug]/page.tsx +++ b/app/listings/[slug]/page.tsx @@ -137,7 +137,7 @@ export default async function ListingPage({ params }: ListingPageProps) {
{hasCalendar ? ( - + ) : (
{t('availabilityTitle')}