@mseva/digit-ui-module-core 1.0.18 → 1.0.20
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.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14668,11 +14668,11 @@ const UserProfile = _ref => {
|
|
|
14668
14668
|
const [name, setName] = React.useState(userInfo !== null && userInfo !== void 0 && userInfo.name ? userInfo.name : "");
|
|
14669
14669
|
const dateOfBirth = userDetails === null || userDetails === void 0 ? void 0 : userDetails.dob;
|
|
14670
14670
|
console.log("ddd", dateOfBirth);
|
|
14671
|
-
const formattedDob = dateOfBirth !== undefined ? format(new Date(dateOfBirth),
|
|
14671
|
+
const formattedDob = dateOfBirth !== undefined ? format(new Date(dateOfBirth), "MM/dd/yyyy") : "";
|
|
14672
14672
|
const [dob, setDob] = React.useState(dateOfBirth);
|
|
14673
14673
|
const [email, setEmail] = React.useState(userInfo !== null && userInfo !== void 0 && userInfo.emailId ? userInfo.emailId : "");
|
|
14674
14674
|
const [gender, setGender] = React.useState(userDetails === null || userDetails === void 0 ? void 0 : userDetails.gender);
|
|
14675
|
-
const [city, setCity] = React.useState(userInfo !== null && userInfo !== void 0 && userInfo.permanentCity ? userInfo.permanentCity : cityDetails.name);
|
|
14675
|
+
const [city, setCity] = React.useState(userInfo !== null && userInfo !== void 0 && userInfo.permanentCity ? userInfo === null || userInfo === void 0 ? void 0 : userInfo.permanentCity : cityDetails === null || cityDetails === void 0 ? void 0 : cityDetails.name);
|
|
14676
14676
|
const [mobileNumber, setMobileNo] = React.useState(userInfo !== null && userInfo !== void 0 && userInfo.mobileNumber ? userInfo.mobileNumber : "");
|
|
14677
14677
|
const [profilePic, setProfilePic] = React.useState(userDetails !== null && userDetails !== void 0 && userDetails.photo ? userDetails === null || userDetails === void 0 ? void 0 : userDetails.photo : "");
|
|
14678
14678
|
const [profileImg, setProfileImg] = React.useState("");
|
|
@@ -14771,7 +14771,7 @@ const UserProfile = _ref => {
|
|
|
14771
14771
|
setErrors({
|
|
14772
14772
|
...errors,
|
|
14773
14773
|
mobileNumber: {
|
|
14774
|
-
type:
|
|
14774
|
+
type: "pattern",
|
|
14775
14775
|
message: t("CORE_COMMON_PROFILE_MOBILE_NUMBER_INVALID")
|
|
14776
14776
|
}
|
|
14777
14777
|
});
|
|
@@ -15427,7 +15427,7 @@ const UserProfile = _ref => {
|
|
|
15427
15427
|
color: "white",
|
|
15428
15428
|
borderBottom: "1px solid black",
|
|
15429
15429
|
cursor: "pointer",
|
|
15430
|
-
|
|
15430
|
+
zIndex: "999"
|
|
15431
15431
|
}
|
|
15432
15432
|
}, t("CORE_COMMON_SAVE"))) : "", toast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
15433
15433
|
error: toast.key === "error",
|
|
@@ -16246,7 +16246,7 @@ const Home = () => {
|
|
|
16246
16246
|
enabled: conditionsToDisableNotificationCountTrigger()
|
|
16247
16247
|
}
|
|
16248
16248
|
});
|
|
16249
|
-
if (!
|
|
16249
|
+
if (!tenantId) {
|
|
16250
16250
|
localCheck ? history.push(`/digit-ui/citizen/select-language`) : history.push(`/digit-ui/citizen/select-location`);
|
|
16251
16251
|
}
|
|
16252
16252
|
const citizenServicesObj = uiHomePage === null || uiHomePage === void 0 ? void 0 : uiHomePage.citizenServicesCard;
|