@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.
@@ -6335,8 +6335,8 @@ const SurveyorDetailsDashboard = () => {
6335
6335
  isLoading: isDashboardLoading,
6336
6336
  icon: /*#__PURE__*/React.createElement(FaUsers, null)
6337
6337
  }), /*#__PURE__*/React.createElement(StatCard, {
6338
- title: t("COMPLETED"),
6339
- value: (dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo2 = dashboardData.dashboardInfo) === null || _dashboardData$dashbo2 === void 0 ? void 0 : _dashboardData$dashbo2.completed) || 0,
6338
+ title: t("IN_PROGRESS"),
6339
+ value: (dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo2 = dashboardData.dashboardInfo) === null || _dashboardData$dashbo2 === void 0 ? void 0 : _dashboardData$dashbo2.inProgressCount) || 0,
6340
6340
  type: "week",
6341
6341
  isLoading: isDashboardLoading,
6342
6342
  icon: /*#__PURE__*/React.createElement(FaCheckCircle, null)
@@ -8865,6 +8865,7 @@ const EkycStatus = () => {
8865
8865
  };
8866
8866
 
8867
8867
  const CitizenApp = () => {
8868
+ var _Digit$SessionStorage, _Digit$SessionStorage2;
8868
8869
  const {
8869
8870
  t
8870
8871
  } = useTranslation();
@@ -8872,6 +8873,7 @@ const CitizenApp = () => {
8872
8873
  const {
8873
8874
  path
8874
8875
  } = useRouteMatch();
8876
+ 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);
8875
8877
  const {
8876
8878
  data: {
8877
8879
  stateInfo
@@ -9031,7 +9033,7 @@ const CitizenApp = () => {
9031
9033
  }), /*#__PURE__*/React.createElement(PrivateRoute, {
9032
9034
  path: `${path}/surveyor-dashboard/:id`,
9033
9035
  component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
9034
- layoutClass: "action"
9036
+ layoutClass: roles.includes("EKYC_SUPERVISOR") ? "action" : "normal"
9035
9037
  }, /*#__PURE__*/React.createElement(SurveyorDetailsDashboard, null))
9036
9038
  }), /*#__PURE__*/React.createElement(PrivateRoute, {
9037
9039
  path: `${path}/surveyor-dashboard`,