@pelcro/react-pelcro-js 2.6.0-beta.14 → 2.6.0-beta.15
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.cjs.js +2 -4
- package/dist/index.esm.js +2 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15474,13 +15474,11 @@ function Phone({
|
|
|
15474
15474
|
const {
|
|
15475
15475
|
dispatch,
|
|
15476
15476
|
state: {
|
|
15477
|
-
phone
|
|
15477
|
+
phone
|
|
15478
15478
|
}
|
|
15479
15479
|
} = React.useContext(store);
|
|
15480
|
-
const [value, setValue] = React.useState(stateValue);
|
|
15481
15480
|
|
|
15482
15481
|
const handleInputChange = value => {
|
|
15483
|
-
setValue(value);
|
|
15484
15482
|
dispatch({
|
|
15485
15483
|
type: SET_PHONE,
|
|
15486
15484
|
payload: value
|
|
@@ -15489,7 +15487,7 @@ function Phone({
|
|
|
15489
15487
|
|
|
15490
15488
|
return /*#__PURE__*/React__default['default'].createElement(Input, Object.assign({
|
|
15491
15489
|
type: "tel",
|
|
15492
|
-
value:
|
|
15490
|
+
value: phone,
|
|
15493
15491
|
onChange: e => handleInputChange(e.target.value)
|
|
15494
15492
|
}, otherProps));
|
|
15495
15493
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -15444,13 +15444,11 @@ function Phone({
|
|
|
15444
15444
|
const {
|
|
15445
15445
|
dispatch,
|
|
15446
15446
|
state: {
|
|
15447
|
-
phone
|
|
15447
|
+
phone
|
|
15448
15448
|
}
|
|
15449
15449
|
} = useContext(store);
|
|
15450
|
-
const [value, setValue] = useState(stateValue);
|
|
15451
15450
|
|
|
15452
15451
|
const handleInputChange = value => {
|
|
15453
|
-
setValue(value);
|
|
15454
15452
|
dispatch({
|
|
15455
15453
|
type: SET_PHONE,
|
|
15456
15454
|
payload: value
|
|
@@ -15459,7 +15457,7 @@ function Phone({
|
|
|
15459
15457
|
|
|
15460
15458
|
return /*#__PURE__*/React__default.createElement(Input, Object.assign({
|
|
15461
15459
|
type: "tel",
|
|
15462
|
-
value:
|
|
15460
|
+
value: phone,
|
|
15463
15461
|
onChange: e => handleInputChange(e.target.value)
|
|
15464
15462
|
}, otherProps));
|
|
15465
15463
|
}
|