diff --git a/src/components/MultipleDatePicker/index.tsx b/src/components/MultipleDatePicker/index.tsx index 63605e10..03109b1c 100644 --- a/src/components/MultipleDatePicker/index.tsx +++ b/src/components/MultipleDatePicker/index.tsx @@ -107,9 +107,7 @@ const MultipleDatePicker: React.FC<{ dropdownRender={() => { return ( { + disabledDate={(current) => { const date = new Date(); return current.valueOf() <= date.setDate(date.getDate() - 1); diff --git a/src/pages/Consultations/components/Calendar.tsx b/src/pages/Consultations/components/Calendar.tsx index 77e51560..7af5e9d5 100644 --- a/src/pages/Consultations/components/Calendar.tsx +++ b/src/pages/Consultations/components/Calendar.tsx @@ -35,9 +35,7 @@ export const ChangeDate: React.FC<{ return ( { + disabledDate={(current) => { const currDate = new Date(); return current && current.valueOf() <= currDate.setDate(currDate.getDate() - 1);