mobile: fix reminder date picker not going in past

This commit is contained in:
ammarahm-ed
2023-03-29 16:29:40 +05:00
parent 27863def9c
commit fca26a8793

View File

@@ -434,11 +434,6 @@ export default function ReminderSheet({
<DatePicker
date={date}
minimumDate={
dayjs(date).subtract(3, "months").isBefore(dayjs())
? dayjs().toDate()
: dayjs(date).subtract(3, "months").toDate()
}
maximumDate={dayjs(date).add(3, "months").toDate()}
onDateChange={handleConfirm}
textColor={colors.night ? "#ffffff" : "#000000"}