From 6245965c1ce0c73cc22d192301a4b6fc4887cfdd Mon Sep 17 00:00:00 2001 From: Claw AI Date: Sun, 29 Mar 2026 21:40:32 +0000 Subject: [PATCH] Allow unauthenticated users to view and select dates, login only on book --- app/property/[id]/page.js | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/app/property/[id]/page.js b/app/property/[id]/page.js index 5cd5924..88afeae 100644 --- a/app/property/[id]/page.js +++ b/app/property/[id]/page.js @@ -238,10 +238,6 @@ export default function PropertyDetailsPage() { }; const handleCalendarClick = (dateStr) => { - if (!AuthService.isAuthenticated()) { - setShowLoginDialog(true); - return; - } if (!isDateAvailable(dateStr)) return; if (!bookingDates.start || selectingEnd) { @@ -610,17 +606,6 @@ export default function PropertyDetailsPage() { {/* Calendar */}
- {!AuthService.isAuthenticated() && ( -
setShowLoginDialog(true)} - className="absolute inset-0 z-10 flex items-center justify-center bg-white/80 backdrop-blur-sm rounded-xl cursor-pointer" - > -
- -

سجّل الدخول لعرض التواريخ المتاحة

-
-
- )}