authscape 1.0.145 → 1.0.147
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/index.js +61 -13
- package/package.json +1 -1
- package/src/components/GoogleMapsAutoComplete.js +145 -96
package/index.js
CHANGED
|
@@ -730,6 +730,7 @@ var _LocationOnRounded = _interopRequireDefault(require("@mui/icons-material/Loc
|
|
|
730
730
|
var _ListItemText = _interopRequireDefault(require("@mui/material/ListItemText"));
|
|
731
731
|
var _reactCoolOnclickoutside = _interopRequireDefault(require("react-cool-onclickoutside"));
|
|
732
732
|
var _reactHookForm = require("react-hook-form");
|
|
733
|
+
var _Stack = _interopRequireDefault(require("@mui/material/Stack"));
|
|
733
734
|
var _usePlacesAutocomplete = _interopRequireWildcard(require("use-places-autocomplete"));
|
|
734
735
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
735
736
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -745,6 +746,7 @@ var AutoCompleteDialog = function AutoCompleteDialog(_ref) {
|
|
|
745
746
|
var placeholder = _ref.placeholder,
|
|
746
747
|
onSelected = _ref.onSelected,
|
|
747
748
|
defaultValue = _ref.defaultValue,
|
|
749
|
+
react_hook_form_Control = _ref.react_hook_form_Control,
|
|
748
750
|
onChange = _ref.onChange;
|
|
749
751
|
var txtAddressField = (0, _react.useRef)(null);
|
|
750
752
|
var dismissSuggestions = function dismissSuggestions() {
|
|
@@ -976,15 +978,28 @@ var AutoCompleteDialog = function AutoCompleteDialog(_ref) {
|
|
|
976
978
|
})), /*#__PURE__*/_react["default"].createElement(_ListItemText["default"], null, /*#__PURE__*/_react["default"].createElement("strong", null, main_text), " ", /*#__PURE__*/_react["default"].createElement("small", null, secondary_text)));
|
|
977
979
|
});
|
|
978
980
|
};
|
|
979
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(
|
|
980
|
-
|
|
981
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, react_hook_form_Control == null && /*#__PURE__*/_react["default"].createElement(_Stack["default"], null, /*#__PURE__*/_react["default"].createElement(_TextField["default"], {
|
|
982
|
+
ref: txtAddressField,
|
|
983
|
+
name: "address",
|
|
984
|
+
autoComplete: "new-password",
|
|
985
|
+
label: placeholder,
|
|
986
|
+
variant: "outlined",
|
|
987
|
+
fullWidth: true,
|
|
988
|
+
value: value,
|
|
989
|
+
onChange: handleInput
|
|
990
|
+
}), errors.address && errors.address.type === 'required' && /*#__PURE__*/_react["default"].createElement(Typography, {
|
|
991
|
+
sx: {
|
|
992
|
+
color: "red"
|
|
993
|
+
}
|
|
994
|
+
}, "Address is required.")), react_hook_form_Control != null && /*#__PURE__*/_react["default"].createElement(_reactHookForm.Controller, {
|
|
995
|
+
control: react_hook_form_Control,
|
|
981
996
|
rules: {
|
|
982
997
|
required: true
|
|
983
998
|
},
|
|
984
999
|
name: "address",
|
|
985
1000
|
render: function render(_ref3) {
|
|
986
1001
|
var field = _ref3.field;
|
|
987
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
1002
|
+
return /*#__PURE__*/_react["default"].createElement(_Stack["default"], null, /*#__PURE__*/_react["default"].createElement(_TextField["default"], _extends({
|
|
988
1003
|
ref: txtAddressField,
|
|
989
1004
|
name: "address"
|
|
990
1005
|
}, field, {
|
|
@@ -1019,7 +1034,9 @@ var GooglePlacesModal = function GooglePlacesModal(_ref4) {
|
|
|
1019
1034
|
_ref4$_state = _ref4._state,
|
|
1020
1035
|
_state = _ref4$_state === void 0 ? "" : _ref4$_state,
|
|
1021
1036
|
_ref4$_postalCode = _ref4._postalCode,
|
|
1022
|
-
_postalCode = _ref4$_postalCode === void 0 ? "" : _ref4$_postalCode
|
|
1037
|
+
_postalCode = _ref4$_postalCode === void 0 ? "" : _ref4$_postalCode,
|
|
1038
|
+
_ref4$react_hook_form = _ref4.react_hook_form_Control,
|
|
1039
|
+
react_hook_form_Control = _ref4$react_hook_form === void 0 ? null : _ref4$react_hook_form;
|
|
1023
1040
|
var _useState = (0, _react.useState)(_address),
|
|
1024
1041
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1025
1042
|
address = _useState2[0],
|
|
@@ -1046,6 +1063,7 @@ var GooglePlacesModal = function GooglePlacesModal(_ref4) {
|
|
|
1046
1063
|
setLng = _useState12[1];
|
|
1047
1064
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_system.Box, null, /*#__PURE__*/_react["default"].createElement(AutoCompleteDialog, {
|
|
1048
1065
|
placeholder: "Address",
|
|
1066
|
+
react_hook_form_Control: react_hook_form_Control,
|
|
1049
1067
|
defaultValue: address,
|
|
1050
1068
|
onSelected: function onSelected(data) {
|
|
1051
1069
|
setAddress(data.address);
|
|
@@ -1068,15 +1086,25 @@ var GooglePlacesModal = function GooglePlacesModal(_ref4) {
|
|
|
1068
1086
|
}, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
1069
1087
|
item: true,
|
|
1070
1088
|
xs: 6
|
|
1071
|
-
}, /*#__PURE__*/_react["default"].createElement(_system.Box, null, /*#__PURE__*/_react["default"].createElement(
|
|
1072
|
-
|
|
1089
|
+
}, /*#__PURE__*/_react["default"].createElement(_system.Box, null, react_hook_form_Control == null && /*#__PURE__*/_react["default"].createElement(_TextField["default"], {
|
|
1090
|
+
id: "outlined-basic",
|
|
1091
|
+
label: "City",
|
|
1092
|
+
name: "city",
|
|
1093
|
+
variant: "outlined",
|
|
1094
|
+
fullWidth: true,
|
|
1095
|
+
value: city,
|
|
1096
|
+
onChange: function onChange(val) {
|
|
1097
|
+
setCity(val.currentTarget.value);
|
|
1098
|
+
}
|
|
1099
|
+
}), react_hook_form_Control != null && /*#__PURE__*/_react["default"].createElement(_reactHookForm.Controller, {
|
|
1100
|
+
control: react_hook_form_Control,
|
|
1073
1101
|
rules: {
|
|
1074
1102
|
required: true
|
|
1075
1103
|
},
|
|
1076
1104
|
name: "city",
|
|
1077
1105
|
render: function render(_ref5) {
|
|
1078
1106
|
var field = _ref5.field;
|
|
1079
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
1107
|
+
return /*#__PURE__*/_react["default"].createElement(_Stack["default"], null, /*#__PURE__*/_react["default"].createElement(_TextField["default"], _extends({
|
|
1080
1108
|
id: "outlined-basic",
|
|
1081
1109
|
label: "City",
|
|
1082
1110
|
name: "city",
|
|
@@ -1096,15 +1124,25 @@ var GooglePlacesModal = function GooglePlacesModal(_ref4) {
|
|
|
1096
1124
|
}))), /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
1097
1125
|
item: true,
|
|
1098
1126
|
xs: 6
|
|
1099
|
-
}, /*#__PURE__*/_react["default"].createElement(_system.Box, null, /*#__PURE__*/_react["default"].createElement(
|
|
1100
|
-
|
|
1127
|
+
}, /*#__PURE__*/_react["default"].createElement(_system.Box, null, react_hook_form_Control == null && /*#__PURE__*/_react["default"].createElement(_TextField["default"], {
|
|
1128
|
+
id: "outlined-basic",
|
|
1129
|
+
label: "State",
|
|
1130
|
+
name: "state",
|
|
1131
|
+
variant: "outlined",
|
|
1132
|
+
fullWidth: true,
|
|
1133
|
+
value: state,
|
|
1134
|
+
onChange: function onChange(val) {
|
|
1135
|
+
setState(val.currentTarget.value);
|
|
1136
|
+
}
|
|
1137
|
+
}), react_hook_form_Control != null && /*#__PURE__*/_react["default"].createElement(_reactHookForm.Controller, {
|
|
1138
|
+
control: react_hook_form_Control,
|
|
1101
1139
|
rules: {
|
|
1102
1140
|
required: true
|
|
1103
1141
|
},
|
|
1104
1142
|
name: "state",
|
|
1105
1143
|
render: function render(_ref6) {
|
|
1106
1144
|
var field = _ref6.field;
|
|
1107
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
1145
|
+
return /*#__PURE__*/_react["default"].createElement(_Stack["default"], null, /*#__PURE__*/_react["default"].createElement(_TextField["default"], _extends({
|
|
1108
1146
|
id: "outlined-basic",
|
|
1109
1147
|
label: "State"
|
|
1110
1148
|
}, field, {
|
|
@@ -1125,15 +1163,25 @@ var GooglePlacesModal = function GooglePlacesModal(_ref4) {
|
|
|
1125
1163
|
sx: {
|
|
1126
1164
|
marginTop: 2
|
|
1127
1165
|
}
|
|
1128
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
1129
|
-
|
|
1166
|
+
}, react_hook_form_Control == null && /*#__PURE__*/_react["default"].createElement(_TextField["default"], {
|
|
1167
|
+
id: "outlined-basic",
|
|
1168
|
+
label: "Postal code",
|
|
1169
|
+
name: "postalCode",
|
|
1170
|
+
variant: "outlined",
|
|
1171
|
+
fullWidth: true,
|
|
1172
|
+
value: zip,
|
|
1173
|
+
onChange: function onChange(val) {
|
|
1174
|
+
setPostalcode(val.currentTarget.value);
|
|
1175
|
+
}
|
|
1176
|
+
}), react_hook_form_Control != null && /*#__PURE__*/_react["default"].createElement(_reactHookForm.Controller, {
|
|
1177
|
+
control: react_hook_form_Control,
|
|
1130
1178
|
rules: {
|
|
1131
1179
|
required: true
|
|
1132
1180
|
},
|
|
1133
1181
|
name: "postalCode",
|
|
1134
1182
|
render: function render(_ref7) {
|
|
1135
1183
|
var field = _ref7.field;
|
|
1136
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
1184
|
+
return /*#__PURE__*/_react["default"].createElement(_Stack["default"], null, /*#__PURE__*/_react["default"].createElement(_TextField["default"], _extends({
|
|
1137
1185
|
id: "outlined-basic",
|
|
1138
1186
|
label: "Postal code"
|
|
1139
1187
|
}, field, {
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ import LocationOnRoundedIcon from '@mui/icons-material/LocationOnRounded';
|
|
|
10
10
|
import ListItemText from '@mui/material/ListItemText';
|
|
11
11
|
import useOnclickOutside from "react-cool-onclickoutside";
|
|
12
12
|
import { useForm, Controller, useFieldArray } from "react-hook-form";
|
|
13
|
+
import Stack from "@mui/material/Stack";
|
|
13
14
|
|
|
14
15
|
import usePlacesAutocomplete, {
|
|
15
16
|
getGeocode,
|
|
@@ -18,7 +19,7 @@ import usePlacesAutocomplete, {
|
|
|
18
19
|
getLatLng,
|
|
19
20
|
} from "use-places-autocomplete";
|
|
20
21
|
|
|
21
|
-
const AutoCompleteDialog = ({placeholder, onSelected, defaultValue, onChange}) => {
|
|
22
|
+
const AutoCompleteDialog = ({placeholder, onSelected, defaultValue, react_hook_form_Control, onChange}) => {
|
|
22
23
|
|
|
23
24
|
const txtAddressField = useRef(null);
|
|
24
25
|
|
|
@@ -324,19 +325,30 @@ const AutoCompleteDialog = ({placeholder, onSelected, defaultValue, onChange}) =
|
|
|
324
325
|
return (
|
|
325
326
|
<>
|
|
326
327
|
|
|
327
|
-
|
|
328
|
-
control={control}
|
|
329
|
-
rules={{ required: true }}
|
|
330
|
-
name="address"
|
|
331
|
-
render={({ field }) => (
|
|
328
|
+
{react_hook_form_Control == null &&
|
|
332
329
|
<Stack>
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
330
|
+
<TextField ref={txtAddressField} name="address" autoComplete="new-password" label={placeholder} variant="outlined" fullWidth={true} value={value} onChange={handleInput} />
|
|
331
|
+
{errors.address &&
|
|
332
|
+
errors.address.type === 'required'
|
|
333
|
+
&& <Typography sx={{color: "red"}}>Address is required.</Typography>}
|
|
337
334
|
</Stack>
|
|
338
|
-
|
|
339
|
-
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
{react_hook_form_Control != null &&
|
|
338
|
+
<Controller
|
|
339
|
+
control={react_hook_form_Control}
|
|
340
|
+
rules={{ required: true }}
|
|
341
|
+
name="address"
|
|
342
|
+
render={({ field }) => (
|
|
343
|
+
<Stack>
|
|
344
|
+
<TextField ref={txtAddressField} name="address" {...field} autoComplete="new-password" label={placeholder} variant="outlined" fullWidth={true} value={value} onChange={handleInput} />
|
|
345
|
+
{errors.address &&
|
|
346
|
+
errors.address.type === 'required'
|
|
347
|
+
&& <Typography sx={{color: "red"}}>Address is required.</Typography>}
|
|
348
|
+
</Stack>
|
|
349
|
+
)}
|
|
350
|
+
/>
|
|
351
|
+
}
|
|
340
352
|
|
|
341
353
|
|
|
342
354
|
|
|
@@ -358,7 +370,8 @@ export const GooglePlacesModal = ({
|
|
|
358
370
|
_address = "",
|
|
359
371
|
_city = "",
|
|
360
372
|
_state = "",
|
|
361
|
-
_postalCode = ""
|
|
373
|
+
_postalCode = "",
|
|
374
|
+
react_hook_form_Control = null
|
|
362
375
|
}) => {
|
|
363
376
|
const [address, setAddress] = useState(_address);
|
|
364
377
|
const [city, setCity] = useState(_city);
|
|
@@ -373,6 +386,7 @@ export const GooglePlacesModal = ({
|
|
|
373
386
|
<Box>
|
|
374
387
|
<AutoCompleteDialog
|
|
375
388
|
placeholder={"Address"}
|
|
389
|
+
react_hook_form_Control={react_hook_form_Control}
|
|
376
390
|
defaultValue={address}
|
|
377
391
|
onSelected={(data) => {
|
|
378
392
|
setAddress(data.address);
|
|
@@ -393,32 +407,47 @@ export const GooglePlacesModal = ({
|
|
|
393
407
|
<Grid item xs={6}>
|
|
394
408
|
<Box>
|
|
395
409
|
|
|
410
|
+
{react_hook_form_Control == null &&
|
|
411
|
+
<TextField
|
|
412
|
+
id="outlined-basic"
|
|
413
|
+
label="City"
|
|
414
|
+
name="city"
|
|
415
|
+
variant="outlined"
|
|
416
|
+
fullWidth={true}
|
|
417
|
+
value={city}
|
|
418
|
+
onChange={(val) => {
|
|
419
|
+
setCity(val.currentTarget.value);
|
|
420
|
+
}}
|
|
421
|
+
/>
|
|
422
|
+
}
|
|
396
423
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
<
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
424
|
+
{react_hook_form_Control != null &&
|
|
425
|
+
<Controller
|
|
426
|
+
control={react_hook_form_Control}
|
|
427
|
+
rules={{ required: true }}
|
|
428
|
+
name="city"
|
|
429
|
+
render={({ field }) => (
|
|
430
|
+
<Stack>
|
|
431
|
+
<TextField
|
|
432
|
+
id="outlined-basic"
|
|
433
|
+
label="City"
|
|
434
|
+
name="city"
|
|
435
|
+
variant="outlined"
|
|
436
|
+
{...field}
|
|
437
|
+
fullWidth={true}
|
|
438
|
+
value={city}
|
|
439
|
+
onChange={(val) => {
|
|
440
|
+
setCity(val.currentTarget.value);
|
|
441
|
+
}}
|
|
442
|
+
/>
|
|
443
|
+
|
|
444
|
+
{errors.city &&
|
|
445
|
+
errors.city.type === 'required'
|
|
446
|
+
&& <Typography sx={{color: "red"}}>City is required.</Typography>}
|
|
447
|
+
</Stack>
|
|
448
|
+
)}
|
|
449
|
+
/>
|
|
450
|
+
}
|
|
422
451
|
|
|
423
452
|
|
|
424
453
|
</Box>
|
|
@@ -427,85 +456,105 @@ export const GooglePlacesModal = ({
|
|
|
427
456
|
<Grid item xs={6}>
|
|
428
457
|
<Box>
|
|
429
458
|
|
|
430
|
-
|
|
431
|
-
<Controller
|
|
432
|
-
control={control}
|
|
433
|
-
rules={{ required: true }}
|
|
434
|
-
name="state"
|
|
435
|
-
render={({ field }) => (
|
|
436
|
-
<Stack>
|
|
437
|
-
|
|
438
|
-
<TextField
|
|
439
|
-
id="outlined-basic"
|
|
440
|
-
label="State"
|
|
441
|
-
{...field}
|
|
442
|
-
name="state"
|
|
443
|
-
variant="outlined"
|
|
444
|
-
fullWidth={true}
|
|
445
|
-
value={state}
|
|
446
|
-
onChange={(val) => {
|
|
447
|
-
setState(val.currentTarget.value);
|
|
448
|
-
}}
|
|
449
|
-
/>
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
{errors.state &&
|
|
453
|
-
errors.state.type === 'required'
|
|
454
|
-
&& <Typography sx={{color: "red"}}>State is required.</Typography>}
|
|
455
|
-
</Stack>
|
|
456
|
-
)}
|
|
457
|
-
/>
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
</Box>
|
|
463
|
-
</Grid>
|
|
464
|
-
</Grid>
|
|
465
|
-
|
|
466
|
-
<Box sx={{ marginTop: 2 }}>
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
<Controller
|
|
471
|
-
control={control}
|
|
472
|
-
rules={{ required: true }}
|
|
473
|
-
name="postalCode"
|
|
474
|
-
render={({ field }) => (
|
|
475
|
-
<Stack>
|
|
459
|
+
{react_hook_form_Control == null &&
|
|
476
460
|
|
|
477
461
|
<TextField
|
|
478
462
|
id="outlined-basic"
|
|
479
|
-
label="
|
|
480
|
-
|
|
481
|
-
name="postalCode"
|
|
463
|
+
label="State"
|
|
464
|
+
name="state"
|
|
482
465
|
variant="outlined"
|
|
483
466
|
fullWidth={true}
|
|
484
|
-
value={
|
|
467
|
+
value={state}
|
|
485
468
|
onChange={(val) => {
|
|
486
|
-
|
|
469
|
+
setState(val.currentTarget.value);
|
|
487
470
|
}}
|
|
488
471
|
/>
|
|
472
|
+
}
|
|
489
473
|
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
474
|
+
{react_hook_form_Control != null &&
|
|
475
|
+
<Controller
|
|
476
|
+
control={react_hook_form_Control}
|
|
477
|
+
rules={{ required: true }}
|
|
478
|
+
name="state"
|
|
479
|
+
render={({ field }) => (
|
|
480
|
+
<Stack>
|
|
481
|
+
|
|
482
|
+
<TextField
|
|
483
|
+
id="outlined-basic"
|
|
484
|
+
label="State"
|
|
485
|
+
{...field}
|
|
486
|
+
name="state"
|
|
487
|
+
variant="outlined"
|
|
488
|
+
fullWidth={true}
|
|
489
|
+
value={state}
|
|
490
|
+
onChange={(val) => {
|
|
491
|
+
setState(val.currentTarget.value);
|
|
492
|
+
}}
|
|
493
|
+
/>
|
|
494
|
+
|
|
495
|
+
{errors.state &&
|
|
496
|
+
errors.state.type === 'required'
|
|
497
|
+
&& <Typography sx={{color: "red"}}>State is required.</Typography>}
|
|
498
|
+
</Stack>
|
|
499
|
+
)}
|
|
500
|
+
/>
|
|
501
|
+
}
|
|
496
502
|
|
|
497
503
|
|
|
498
504
|
|
|
505
|
+
|
|
506
|
+
</Box>
|
|
507
|
+
</Grid>
|
|
508
|
+
</Grid>
|
|
499
509
|
|
|
510
|
+
<Box sx={{ marginTop: 2 }}>
|
|
500
511
|
|
|
501
512
|
|
|
513
|
+
{react_hook_form_Control == null &&
|
|
502
514
|
|
|
515
|
+
<TextField
|
|
516
|
+
id="outlined-basic"
|
|
517
|
+
label="Postal code"
|
|
518
|
+
name="postalCode"
|
|
519
|
+
variant="outlined"
|
|
520
|
+
fullWidth={true}
|
|
521
|
+
value={zip}
|
|
522
|
+
onChange={(val) => {
|
|
523
|
+
setPostalcode(val.currentTarget.value);
|
|
524
|
+
}}
|
|
525
|
+
/>
|
|
526
|
+
}
|
|
503
527
|
|
|
528
|
+
{react_hook_form_Control != null &&
|
|
529
|
+
<Controller
|
|
530
|
+
control={react_hook_form_Control}
|
|
531
|
+
rules={{ required: true }}
|
|
532
|
+
name="postalCode"
|
|
533
|
+
render={({ field }) => (
|
|
534
|
+
<Stack>
|
|
504
535
|
|
|
536
|
+
<TextField
|
|
537
|
+
id="outlined-basic"
|
|
538
|
+
label="Postal code"
|
|
539
|
+
{...field}
|
|
540
|
+
name="postalCode"
|
|
541
|
+
variant="outlined"
|
|
542
|
+
fullWidth={true}
|
|
543
|
+
value={zip}
|
|
544
|
+
onChange={(val) => {
|
|
545
|
+
setPostalcode(val.currentTarget.value);
|
|
546
|
+
}}
|
|
547
|
+
/>
|
|
505
548
|
|
|
549
|
+
{errors.postalCode &&
|
|
550
|
+
errors.postalCode.type === 'required'
|
|
551
|
+
&& <Typography sx={{color: "red"}}>Postal Code is required.</Typography>}
|
|
552
|
+
</Stack>
|
|
553
|
+
)}
|
|
554
|
+
/>
|
|
555
|
+
}
|
|
506
556
|
|
|
507
557
|
|
|
508
|
-
|
|
509
558
|
</Box>
|
|
510
559
|
|
|
511
560
|
{/* <Box sx={{ marginTop: 1, textAlign: "right" }}>
|