@djb25/digit-ui-module-ekyc 1.0.72 → 1.0.73

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 CHANGED
@@ -6338,8 +6338,8 @@ const SurveyorDetailsDashboard = () => {
6338
6338
  isLoading: isDashboardLoading,
6339
6339
  icon: /*#__PURE__*/React__default.createElement(fa.FaUsers, null)
6340
6340
  }), /*#__PURE__*/React__default.createElement(StatCard, {
6341
- title: t("COMPLETED"),
6342
- value: (dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo2 = dashboardData.dashboardInfo) === null || _dashboardData$dashbo2 === void 0 ? void 0 : _dashboardData$dashbo2.completed) || 0,
6341
+ title: t("IN_PROGRESS"),
6342
+ value: (dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo2 = dashboardData.dashboardInfo) === null || _dashboardData$dashbo2 === void 0 ? void 0 : _dashboardData$dashbo2.inProgressCount) || 0,
6343
6343
  type: "week",
6344
6344
  isLoading: isDashboardLoading,
6345
6345
  icon: /*#__PURE__*/React__default.createElement(fa.FaCheckCircle, null)
@@ -8868,6 +8868,7 @@ const EkycStatus = () => {
8868
8868
  };
8869
8869
 
8870
8870
  const CitizenApp = () => {
8871
+ var _Digit$SessionStorage, _Digit$SessionStorage2;
8871
8872
  const {
8872
8873
  t
8873
8874
  } = reactI18next.useTranslation();
@@ -8875,6 +8876,7 @@ const CitizenApp = () => {
8875
8876
  const {
8876
8877
  path
8877
8878
  } = reactRouterDom.useRouteMatch();
8879
+ const roles = (_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.map(ele => ele.code);
8878
8880
  const {
8879
8881
  data: {
8880
8882
  stateInfo
@@ -9034,7 +9036,7 @@ const CitizenApp = () => {
9034
9036
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
9035
9037
  path: `${path}/surveyor-dashboard/:id`,
9036
9038
  component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
9037
- layoutClass: "action"
9039
+ layoutClass: roles.includes("EKYC_SUPERVISOR") ? "action" : "normal"
9038
9040
  }, /*#__PURE__*/React__default.createElement(SurveyorDetailsDashboard, null))
9039
9041
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
9040
9042
  path: `${path}/surveyor-dashboard`,