Calendar min month as current month closes #635

This commit is contained in:
Kalle (Sendou)
2021-08-23 22:19:07 +03:00
parent 70c84f888a
commit 591e7a4d63

View File

@@ -112,7 +112,10 @@ const CalendarPage = ({ eventsInitialData }: Props) => {
)}
<Calendar
current={{ month, year }}
min={{ month: 7, year: 2021 }}
min={{
month: new Date().getMonth() + 1,
year: new Date().getFullYear(),
}}
handleNextClick={() =>
setMonthYear(
month === 12