@djb25/digit-ui-module-ekyc 1.0.65 → 1.0.67
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 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -10,6 +10,9 @@ const EKYCCard = () => {
|
|
|
10
10
|
var _Digit$SessionStorage, _Digit$SessionStorage2;
|
|
11
11
|
const _useTranslation = useTranslation(),
|
|
12
12
|
t = _useTranslation.t;
|
|
13
|
+
if (!Digit.Utils.ekycAccess()) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
13
16
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
14
17
|
const citizenInfo = (_Digit$SessionStorage = Digit.SessionStorage.get("User")) === null || _Digit$SessionStorage === void 0 ? void 0 : (_Digit$SessionStorage2 = _Digit$SessionStorage.info) === null || _Digit$SessionStorage2 === void 0 ? void 0 : _Digit$SessionStorage2.roles;
|
|
15
18
|
const roles = Array.isArray(citizenInfo) ? citizenInfo.map(ele => ele.code || ele) : [];
|
|
@@ -2980,12 +2983,7 @@ const Inbox = _ref2 => {
|
|
|
2980
2983
|
marginBottom: "24px"
|
|
2981
2984
|
}
|
|
2982
2985
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2983
|
-
className: "stats-wrapper"
|
|
2984
|
-
style: {
|
|
2985
|
-
display: "flex",
|
|
2986
|
-
gap: "16px",
|
|
2987
|
-
flexWrap: "wrap"
|
|
2988
|
-
}
|
|
2986
|
+
className: "stats-wrapper"
|
|
2989
2987
|
}, cards.map((card, idx) => /*#__PURE__*/React.createElement(StatCard, {
|
|
2990
2988
|
key: idx,
|
|
2991
2989
|
title: t(card.label),
|
|
@@ -9373,7 +9371,7 @@ const EkycModule = _ref => {
|
|
|
9373
9371
|
isLoading = _Digit$Services$useSt.isLoading;
|
|
9374
9372
|
Digit.SessionStorage.set("EKYC_TENANTS", tenants);
|
|
9375
9373
|
useEffect(() => Digit.LocalizationService.getLocale({
|
|
9376
|
-
modules: ["rainmaker-
|
|
9374
|
+
modules: ["rainmaker-" + Digit.ULBService.getCurrentTenantId()],
|
|
9377
9375
|
locale: Digit.StoreData.getCurrentLanguage(),
|
|
9378
9376
|
tenantId: Digit.ULBService.getCurrentTenantId()
|
|
9379
9377
|
}), []);
|