From 704aaacd0a29c07b1ee2a8a603852d000cc2354a Mon Sep 17 00:00:00 2001 From: Suryansh Date: Tue, 7 Jan 2025 16:59:48 +0530 Subject: [PATCH] review changes --- .../micro-ui-internals/example/package.json | 2 +- .../modules/campaign-manager/package.json | 2 +- .../src/components/IndividualUserTable.js | 26 +++++++------- .../src/pages/employee/Attendance.js | 34 +++++++++---------- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/health/micro-ui/web/micro-ui-internals/example/package.json b/health/micro-ui/web/micro-ui-internals/example/package.json index 5f524e73f4..71f104204f 100644 --- a/health/micro-ui/web/micro-ui-internals/example/package.json +++ b/health/micro-ui/web/micro-ui-internals/example/package.json @@ -16,7 +16,7 @@ "@egovernments/digit-ui-module-utilities": "1.0.3", "@egovernments/digit-ui-react-components": "1.8.12", "@egovernments/digit-ui-module-hcmworkbench": "0.1.0", - "@egovernments/digit-ui-module-campaign-manager": "0.4.0", + "@egovernments/digit-ui-module-campaign-manager": "0.3.0", "@egovernments/digit-ui-module-microplan": "0.0.1", "@egovernments/digit-ui-module-health-payments": "0.0.1", "http-proxy-middleware": "^1.0.5", diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/package.json b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/package.json index 36ec79ba0c..9c9faa70b0 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/package.json +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/package.json @@ -1,6 +1,6 @@ { "name": "@egovernments/digit-ui-module-campaign-manager", - "version": "0.4.0", + "version": "0.3.0", "description": "Campaign", "main": "dist/index.js", "module": "dist/index.modern.js", diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/IndividualUserTable.js b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/IndividualUserTable.js index b43d684c1d..1caf4d6cbc 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/IndividualUserTable.js +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/IndividualUserTable.js @@ -13,7 +13,7 @@ const SupervisorPopup = ({ setShowPopUp, supervisors }) => { className="wrapper-popup-boundary-chips" style={{ maxWidth: "40%" }} type="default" - heading={t("SUPERVISORS_ASSIGNED")} + heading={t("REGISTER_SUPERVISORS_ASSIGNED")} footerChildren={[]} onOverlayClick={() => setShowPopUp(false)} onClose={() => setShowPopUp(false)} @@ -108,23 +108,23 @@ const IndividualUserTable = ({ tenantId, staffAttendeeIds = [], supervisorName = const columns = [ { - name: t('Name'), + name: t('REGISTER_NAME'), selector: row => row.name?.givenName || '', sortable: true, }, { - name: t('Mobile Number'), + name: t('REGISTER_MOBILE_NUMBER'), selector: row => row.mobileNumber || '', sortable: true, }, { - name: t("USER_TYPE"), + name: t("REGISTER_USER_TYPE"), selector: row => row?.userDetails?.type || '', sortable: true }, { - name: t('Assigned Supervisor'), - selector: row => row.isAssigned ? supervisorName : t('Not Assigned'), + name: t('REGISTER_ASSIGNED_SUPERVISOR'), + selector: row => row.isAssigned ? supervisorName : t('REGISTER_SUPERVISOR_NOT_ASSIGNED'), sortable: true, grow: 2, cell: row => { @@ -171,26 +171,26 @@ const IndividualUserTable = ({ tenantId, staffAttendeeIds = [], supervisorName = )} ) : ( - {t('Not Assigned')} + {t('REGISTER_SUPERVISOR_NOT_ASSIGNED')} )} ); }, }, { - name: t('Actions'), + name: t('REGISTER_ACTIONS'), cell: row => (
{row.isAssigned ? (