@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.
@@ -12740,10 +12740,15 @@ var DatePicker = function (props) {
12740
12740
  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"]);
12741
12741
  var _a = useState(Number(new Date().getFullYear())), year = _a[0], setYear = _a[1];
12742
12742
  var _b = useState(Number(new Date().getMonth() + 1)), month = _b[0], setMonth = _b[1];
12743
- var _c = useState(1), nextMonth = _c[0], setNextMonth = _c[1];
12743
+ var _c = useState(Number(new Date().getMonth() + 2)), nextMonth = _c[0], setNextMonth = _c[1];
12744
12744
  var _d = useState(""), date = _d[0], setDate = _d[1];
12745
12745
  var _e = useState(false), isOpenMonthSelector = _e[0], setIsOpenMonthSelector = _e[1];
12746
12746
  var _f = useState(false), isClicked = _f[0], setIsClicked = _f[1];
12747
+ useEffect(function () {
12748
+ if (month === 12) {
12749
+ setNextMonth(1);
12750
+ }
12751
+ }, []);
12747
12752
  useEffect(function () {
12748
12753
  if (format === "month") {
12749
12754
  if (month % 2 === 0) {