@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.js
CHANGED
|
@@ -13,6 +13,9 @@ const EKYCCard = () => {
|
|
|
13
13
|
var _Digit$SessionStorage, _Digit$SessionStorage2;
|
|
14
14
|
const _useTranslation = reactI18next.useTranslation(),
|
|
15
15
|
t = _useTranslation.t;
|
|
16
|
+
if (!Digit.Utils.ekycAccess()) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
16
19
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
17
20
|
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;
|
|
18
21
|
const roles = Array.isArray(citizenInfo) ? citizenInfo.map(ele => ele.code || ele) : [];
|
|
@@ -2983,12 +2986,7 @@ const Inbox = _ref2 => {
|
|
|
2983
2986
|
marginBottom: "24px"
|
|
2984
2987
|
}
|
|
2985
2988
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2986
|
-
className: "stats-wrapper"
|
|
2987
|
-
style: {
|
|
2988
|
-
display: "flex",
|
|
2989
|
-
gap: "16px",
|
|
2990
|
-
flexWrap: "wrap"
|
|
2991
|
-
}
|
|
2989
|
+
className: "stats-wrapper"
|
|
2992
2990
|
}, cards.map((card, idx) => /*#__PURE__*/React__default.createElement(StatCard, {
|
|
2993
2991
|
key: idx,
|
|
2994
2992
|
title: t(card.label),
|
|
@@ -9376,7 +9374,7 @@ const EkycModule = _ref => {
|
|
|
9376
9374
|
isLoading = _Digit$Services$useSt.isLoading;
|
|
9377
9375
|
Digit.SessionStorage.set("EKYC_TENANTS", tenants);
|
|
9378
9376
|
React.useEffect(() => Digit.LocalizationService.getLocale({
|
|
9379
|
-
modules: ["rainmaker-
|
|
9377
|
+
modules: ["rainmaker-" + Digit.ULBService.getCurrentTenantId()],
|
|
9380
9378
|
locale: Digit.StoreData.getCurrentLanguage(),
|
|
9381
9379
|
tenantId: Digit.ULBService.getCurrentTenantId()
|
|
9382
9380
|
}), []);
|