@react-pakistan/util-functions 1.23.48 → 1.23.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,9 +21,10 @@ var get_calendar_current_month_1 = require("./get-calendar-current-month");
|
|
|
21
21
|
dayjs_1.default.extend(weekday_1.default);
|
|
22
22
|
var getCalendarDates = function (_a) {
|
|
23
23
|
var month = _a.month, year = _a.year;
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
24
|
+
var updatedMonth = month + 1;
|
|
25
|
+
var currentMonthDays = (0, get_calendar_current_month_1.getCalendarCurrentMonth)({ month: updatedMonth, year: year });
|
|
26
|
+
var previousMonthDays = (0, get_calendar_previous_month_1.getCalendarPreviousMonth)({ currentMonthDays: currentMonthDays, month: updatedMonth, year: year });
|
|
27
|
+
var nextMonthDays = (0, get_calendar_next_month_1.getCalendarNextMonth)({ currentMonthDays: currentMonthDays, month: updatedMonth, year: year });
|
|
27
28
|
var days = __spreadArray(__spreadArray(__spreadArray([], previousMonthDays, true), currentMonthDays, true), nextMonthDays, true);
|
|
28
29
|
return days;
|
|
29
30
|
};
|