Skip to content

Commit 061dec4

Browse files
authored
Merge pull request #47 from srini-leanfolks/master
Changed the isBetween import
2 parents bebc7e1 + e34d36f commit 061dec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Calendar/Days.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import dayjs from "dayjs";
2+
import isBetween from "dayjs/plugin/isBetween";
23
import React, { useCallback, useContext } from "react";
34

45
import { BG_COLOR, TEXT_COLOR } from "../../constants";
56
import DatepickerContext from "../../contexts/DatepickerContext";
67
import { formatDate, nextMonth, previousMonth, classNames as cn } from "../../helpers";
78

8-
const isBetween = require("dayjs/plugin/isBetween");
99
dayjs.extend(isBetween);
1010

1111
interface Props {

0 commit comments

Comments
 (0)