From 52ae49246f0d321af3cb5b958f3ff87c6c86fe07 Mon Sep 17 00:00:00 2001 From: Hrishikesh Vaipurkar Date: Tue, 5 Nov 2024 15:11:50 +0100 Subject: [PATCH] fix: SW-710 Update comment for allowed future date --- components/DatePicker/Screen/Desktop.tsx | 2 ++ components/DatePicker/Screen/Mobile.tsx | 1 + 2 files changed, 3 insertions(+) diff --git a/components/DatePicker/Screen/Desktop.tsx b/components/DatePicker/Screen/Desktop.tsx index b1fc1292b..c2c8550f1 100644 --- a/components/DatePicker/Screen/Desktop.tsx +++ b/components/DatePicker/Screen/Desktop.tsx @@ -34,6 +34,8 @@ export default function DatePickerDesktop({ const currentDate = dt().toDate() const startOfMonth = dt(currentDate).set("date", 1).toDate() const yesterday = dt(currentDate).subtract(1, "day").toDate() + + // Max future date allowed to book kept same as of existing prod. const endDate = dt().add(395, "day").toDate() const endOfLastMonth = dt(endDate).endOf("month").toDate() diff --git a/components/DatePicker/Screen/Mobile.tsx b/components/DatePicker/Screen/Mobile.tsx index 3af7bd34f..f6cfcae15 100644 --- a/components/DatePicker/Screen/Mobile.tsx +++ b/components/DatePicker/Screen/Mobile.tsx @@ -31,6 +31,7 @@ export default function DatePickerMobile({ const startOfCurrentMonth = dt(currentDate).set("date", 1).toDate() const yesterday = dt(currentDate).subtract(1, "day").toDate() + // Max future date allowed to book kept same as of existing prod. const endDate = dt().add(395, "day").toDate() const endOfLastMonth = dt(endDate).endOf("month").toDate() return (