@ctlyst.id/internal-ui 2.0.18 → 2.0.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/internal-ui.cjs.development.js +2 -6
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +1 -1
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +2 -6
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +2 -2
@@ -1592,14 +1592,10 @@ const TimeInput = ({
|
|
1592
1592
|
}) => {
|
1593
1593
|
const [time, setTime] = React__default.useState(value || '00:00');
|
1594
1594
|
const handleChange = e => {
|
1595
|
-
var _e$target;
|
1595
|
+
var _e$target, _e$target2;
|
1596
1596
|
setTime(((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) || '00:00');
|
1597
|
+
if (onChange) onChange(((_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value) || '00:00');
|
1597
1598
|
};
|
1598
|
-
React__default.useEffect(() => {
|
1599
|
-
if (onChange) {
|
1600
|
-
onChange(time);
|
1601
|
-
}
|
1602
|
-
}, [time]);
|
1603
1599
|
return /*#__PURE__*/React__default.createElement(react.Flex, {
|
1604
1600
|
flexDir: "column",
|
1605
1601
|
alignItems: "center",
|