diff --git a/src/components/Calendar/CalendarComponent.js b/src/components/Calendar/CalendarComponent.js index e1110887..49d7314e 100644 --- a/src/components/Calendar/CalendarComponent.js +++ b/src/components/Calendar/CalendarComponent.js @@ -35,20 +35,27 @@ const CalendarComponent = () => { } function nextMonth() { - return value.clone().add(1, 'month'); + return value.clone().subtract(2, 'month'); } + const prevMonthFirst = () => { + return moment().subtract(1, 'month').format('MMMM'); + }; + const prevMonthSecond = () => { + return moment().subtract(2, 'month').format('MMMM'); + }; + return (