Skip to content

Commit e34d36f

Browse files
changed import from cjs to esm
1 parent 57c24d0 commit e34d36f

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)