@yosgo/swap-ui 1.0.125 → 1.0.126
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/build/index.esm.js +6 -1
- package/build/index.esm.js.map +1 -1
- package/build/index.js +6 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -12745,10 +12745,15 @@ var DatePicker = function (props) {
|
|
|
12745
12745
|
var open = props.open, onClose = props.onClose, format = props.format, mobile = props.mobile, min = props.min, max = props.max, ModalProps = props.ModalProps, defaultValue = props.defaultValue, getValue = props.getValue, value = props.value, other = __rest(props, ["open", "onClose", "format", "mobile", "min", "max", "ModalProps", "defaultValue", "getValue", "value"]);
|
|
12746
12746
|
var _a = React.useState(Number(new Date().getFullYear())), year = _a[0], setYear = _a[1];
|
|
12747
12747
|
var _b = React.useState(Number(new Date().getMonth() + 1)), month = _b[0], setMonth = _b[1];
|
|
12748
|
-
var _c = React.useState(
|
|
12748
|
+
var _c = React.useState(Number(new Date().getMonth() + 2)), nextMonth = _c[0], setNextMonth = _c[1];
|
|
12749
12749
|
var _d = React.useState(""), date = _d[0], setDate = _d[1];
|
|
12750
12750
|
var _e = React.useState(false), isOpenMonthSelector = _e[0], setIsOpenMonthSelector = _e[1];
|
|
12751
12751
|
var _f = React.useState(false), isClicked = _f[0], setIsClicked = _f[1];
|
|
12752
|
+
React.useEffect(function () {
|
|
12753
|
+
if (month === 12) {
|
|
12754
|
+
setNextMonth(1);
|
|
12755
|
+
}
|
|
12756
|
+
}, []);
|
|
12752
12757
|
React.useEffect(function () {
|
|
12753
12758
|
if (format === "month") {
|
|
12754
12759
|
if (month % 2 === 0) {
|