forstok-ui-lib 5.2.38 → 5.2.39
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.
- package/dist/index.js +178 -178
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +172 -172
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/date/daterange.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState, useRef } from 'react';
|
|
2
2
|
import DateRangePicker from 'react-daterange-picker';
|
|
3
|
-
import
|
|
3
|
+
import moment from 'moment';
|
|
4
4
|
import { extendMoment } from 'moment-range';
|
|
5
5
|
import { configDateRange } from '../../maps/common';
|
|
6
6
|
import IconComponent from '../icon';
|
|
@@ -46,7 +46,7 @@ const DateRangeComponent = ({ mode='default', placeholder, startDate, endDate, r
|
|
|
46
46
|
|
|
47
47
|
const daterangeContainerRef = useRef<HTMLElement | null>(null);
|
|
48
48
|
const buttonRef = useRef<HTMLDivElement | null>(null);
|
|
49
|
-
const newMoment = extendMoment(moment);
|
|
49
|
+
const newMoment = extendMoment(moment as any);
|
|
50
50
|
|
|
51
51
|
const callback = () => {
|
|
52
52
|
setOpen(false);
|