From 1f34d82dd027ac18d4813cd6131e0dbd26381b18 Mon Sep 17 00:00:00 2001
From: BharathTarento <bharath.kumar@tarento.cocom>
Date: Thu, 10 Nov 2022 14:11:37 +0530
Subject: [PATCH] changes of the key name to uppercase

---
 src/components/modal/InspectionScheduleModal.tsx   | 2 +-
 src/components/modal/ModalOne.tsx                  | 4 ++--
 src/components/status-bar/StatusBar.tsx            | 4 ++--
 src/components/status-bar/StatusBarLarge.tsx       | 6 +++---
 src/constants/LangConstants.ts                     | 7 ++++---
 src/layouts/Inspector/FormView.tsx                 | 4 ++--
 src/layouts/Inspector/InspectionCompleteLayout.tsx | 2 +-
 src/layouts/Regulator/ReviewApplicationLayout.tsx  | 2 +-
 src/pages/Regulator/RegulatorAllApplications.tsx   | 8 ++++----
 src/pages/Reviewer/ReviewerApplications.tsx        | 4 ++--
 src/pages/Reviewer/ReviewerHome.tsx                | 4 ++--
 11 files changed, 24 insertions(+), 23 deletions(-)

diff --git a/src/components/modal/InspectionScheduleModal.tsx b/src/components/modal/InspectionScheduleModal.tsx
index fb87368..955147c 100644
--- a/src/components/modal/InspectionScheduleModal.tsx
+++ b/src/components/modal/InspectionScheduleModal.tsx
@@ -322,7 +322,7 @@ export const InspectionScheduleModal = ({
     ReviewService.assignToInspection(payload).then(
       (response) => {
         if (response.statusInfo.statusCode === APP.CODE.SUCCESS) {
-          Notify.success(`${LANG.FORM_STATUS_TEXT.sentForInspection}.`);
+          Notify.success(`${LANG.FORM_STATUS_TEXT.SENT_FOR_INSPECTION}.`);
           history.push(APP.ROUTES.DASHBOARD);
           setCuratedAssitingInspectors([]);
           setCuratedLeadInspectors([]);
diff --git a/src/components/modal/ModalOne.tsx b/src/components/modal/ModalOne.tsx
index 5c76fb4..5769ac7 100644
--- a/src/components/modal/ModalOne.tsx
+++ b/src/components/modal/ModalOne.tsx
@@ -20,7 +20,7 @@ export const ModalOne = ({ heading, list, id, ariaLabel }: ModalOneProps) => {
     let formatedStatus = "";
     switch (status) {
       case LANG.FORM_STATUS.INSPECTION_COMPLETED:
-        formatedStatus = `${LANG.FORM_STATUS_TEXT.inspectionCompleted}`;
+        formatedStatus = `${LANG.FORM_STATUS_TEXT.INSPECTION_COMPLETED}`;
         break;
       case LANG.FORM_STATUS.RETURNED:
         formatedStatus = "Returned";
@@ -47,7 +47,7 @@ export const ModalOne = ({ heading, list, id, ariaLabel }: ModalOneProps) => {
         formatedStatus = "Unpublished";
         break;
       case LANG.FORM_STATUS.SENT_FOR_INSPECTION:
-        formatedStatus = `${LANG.FORM_STATUS_TEXT.sentForInspection}`;
+        formatedStatus = `${LANG.FORM_STATUS_TEXT.SENT_FOR_INSPECTION}`;
         break;
       default:
         formatedStatus = "";
diff --git a/src/components/status-bar/StatusBar.tsx b/src/components/status-bar/StatusBar.tsx
index 0cc28e3..1a10b93 100644
--- a/src/components/status-bar/StatusBar.tsx
+++ b/src/components/status-bar/StatusBar.tsx
@@ -41,12 +41,12 @@ export const StatusBar = ({ label, status }: StatusBarProps) => {
       {status && status === LANG.FORM_STATUS.SENT_FOR_INSPECTION && (
         <label
           className={`${styles.status_two_label} px-3 m-0`}
-        >{`Status: ${LANG.FORM_STATUS_TEXT.sentForInspection}`}</label>
+        >{`Status: ${LANG.FORM_STATUS_TEXT.SENT_FOR_INSPECTION}`}</label>
       )}
       {status && status === LANG.FORM_STATUS.INSPECTION_COMPLETED && (
         <label
           className={`${styles.status_one_label} px-3 m-0`}
-        >{`Status: ${LANG.FORM_STATUS_TEXT.inspectionCompleted}`}</label>
+        >{`Status: ${LANG.FORM_STATUS_TEXT.INSPECTION_COMPLETED}`}</label>
       )}
       {status && status === LANG.FORM_STATUS.APPROVED && (
         <label
diff --git a/src/components/status-bar/StatusBarLarge.tsx b/src/components/status-bar/StatusBarLarge.tsx
index 102456f..0ebfc04 100644
--- a/src/components/status-bar/StatusBarLarge.tsx
+++ b/src/components/status-bar/StatusBarLarge.tsx
@@ -72,14 +72,14 @@ export const StatusBarLarge = ({
         <div
           className={`${styles.status_bar_large_indicator} text-center mx-3 mt-3 ${styles.status_bar_large_amber}`}
         >
-          <label>{`Status: ${LANG.FORM_STATUS_TEXT.sentForInspection}`}</label>
+          <label>{`Status: ${LANG.FORM_STATUS_TEXT.SENT_FOR_INSPECTION}`}</label>
         </div>
       )}
       {status === LANG.FORM_STATUS.INSPECTION_COMPLETED && (
         <div
           className={`${styles.status_bar_large_indicator} text-center mx-3 mt-3 ${styles.status_bar_large_green}`}
         >
-          <label>{`Status: ${LANG.FORM_STATUS_TEXT.inspectionCompleted}`}</label>
+          <label>{`Status: ${LANG.FORM_STATUS_TEXT.INSPECTION_COMPLETED}`}</label>
         </div>
       )}
       {status === LANG.FORM_STATUS.APPROVED && (
@@ -134,7 +134,7 @@ export const StatusBarLarge = ({
         </>
       )}
       {label && label === LANG.FORM_STATUS.INSPECTION_COMPLETED && (
-        <p className="text-center pt-3">{`${LANG.FORM_STATUS_TEXT.inspectionCompleted}`}!</p>
+        <p className="text-center pt-3">{`${LANG.FORM_STATUS_TEXT.INSPECTION_COMPLETED}`}!</p>
       )}
       {label && label === LANG.FORM_STATUS.APPROVED && (
         <p className="text-center pt-3">
diff --git a/src/constants/LangConstants.ts b/src/constants/LangConstants.ts
index a9b78c5..7de3d5a 100644
--- a/src/constants/LangConstants.ts
+++ b/src/constants/LangConstants.ts
@@ -55,7 +55,8 @@ export const LANG = {
   HEADING_REMOVAL_WARNING: "Are you sure deleting the header?",
   CONFIRM_TO_REMOVE_2: "This action will move the question section to the general header category.",
   FORM_STATUS_TEXT: {
-    sentForInspection:"Sent for assessment",
-    inspectionCompleted: "Assessment completed"
-  }
+    SENT_FOR_INSPECTION:"Sent for assessment",
+    INSPECTION_COMPLETED: "Assessment completed",
+  },
+  SEND_FOR_INSPECTION:"Send for assessment"
 };
diff --git a/src/layouts/Inspector/FormView.tsx b/src/layouts/Inspector/FormView.tsx
index e3102ca..fd33fe4 100644
--- a/src/layouts/Inspector/FormView.tsx
+++ b/src/layouts/Inspector/FormView.tsx
@@ -2498,7 +2498,7 @@ export const FormView = ({ applicationData, formData }: FormViewProps) => {
                           />
                         ) : enableInspectioComplete ? (
                           <BtnTwo
-                            label={`${LANG.FORM_STATUS_TEXT.inspectionCompleted}`}
+                            label={`${LANG.FORM_STATUS_TEXT.INSPECTION_COMPLETED}`}
                             btnType="button"
                             isLink={true}
                             link={`/inspection-summary/${formData.id}/${applicationData.applicationId}`}
@@ -2514,7 +2514,7 @@ export const FormView = ({ applicationData, formData }: FormViewProps) => {
                             className={`${btnStylesTwo.btn_two_disabled}`}
                             disabled={true}
                           >
-                            {`${LANG.FORM_STATUS_TEXT.inspectionCompleted}`}
+                            {`${LANG.FORM_STATUS_TEXT.INSPECTION_COMPLETED}`}
                           </button>
                         )}
                       </div>
diff --git a/src/layouts/Inspector/InspectionCompleteLayout.tsx b/src/layouts/Inspector/InspectionCompleteLayout.tsx
index af8c3ab..bebda78 100644
--- a/src/layouts/Inspector/InspectionCompleteLayout.tsx
+++ b/src/layouts/Inspector/InspectionCompleteLayout.tsx
@@ -25,7 +25,7 @@ export const InspectionCompleteLayout = ({
                 </div>
             </div>
             <div className="">
-                <HeadingOne heading={`${LANG.FORM_STATUS_TEXT.inspectionCompleted}`} />
+                <HeadingOne heading={`${LANG.FORM_STATUS_TEXT.INSPECTION_COMPLETED}`} />
             </div>
             <div className="mt-4">
                 <BtnTwo label="View pending applications" showIcon={false} isLink={true} isModal={false} btnType="button" link="/all-applications" />
diff --git a/src/layouts/Regulator/ReviewApplicationLayout.tsx b/src/layouts/Regulator/ReviewApplicationLayout.tsx
index 0a1d76b..e22f894 100644
--- a/src/layouts/Regulator/ReviewApplicationLayout.tsx
+++ b/src/layouts/Regulator/ReviewApplicationLayout.tsx
@@ -420,7 +420,7 @@ export const ReviewApplicationLayout = ({
                         </div>
                         <div className="mr-3">
                           <BtnSix
-                            label="Send for inspection"
+                            label={`${LANG.SEND_FOR_INSPECTION}`}
                             showIcon={true}
                             iconValue={`arrow_forward`}
                             isLink={false}
diff --git a/src/pages/Regulator/RegulatorAllApplications.tsx b/src/pages/Regulator/RegulatorAllApplications.tsx
index 3a5764a..fa2a068 100644
--- a/src/pages/Regulator/RegulatorAllApplications.tsx
+++ b/src/pages/Regulator/RegulatorAllApplications.tsx
@@ -55,13 +55,13 @@ export const RegulatorAllApplications = ({
             },
             {
                 id: "sentForInspection",
-                label: `${LANG.FORM_STATUS_TEXT.sentForInspection}`,
+                label: `${LANG.FORM_STATUS_TEXT.SENT_FOR_INSPECTION}`,
                 ariaLabelled: "sent-for-inpection-tab",
                 children: <AllApplicationsTab />,
             },
             {
                 id: "inspectionCompleted",
-                label: `${LANG.FORM_STATUS_TEXT.inspectionCompleted}`,
+                label: `${LANG.FORM_STATUS_TEXT.INSPECTION_COMPLETED}`,
                 ariaLabelled: "inspection-completed-tab",
                 children: <AllApplicationsTab />,
             },
@@ -144,11 +144,11 @@ export const RegulatorAllApplications = ({
                                             tempStatus = "returned";
                                             break;
 
-                                        case `${LANG.FORM_STATUS_TEXT.sentForInspection}`:
+                                        case `${LANG.FORM_STATUS_TEXT.SENT_FOR_INSPECTION}`:
                                             tempStatus = "sentforins";
                                             break;
 
-                                        case `${LANG.FORM_STATUS_TEXT.inspectionCompleted}`:
+                                        case `${LANG.FORM_STATUS_TEXT.INSPECTION_COMPLETED}`:
                                             tempStatus = "inscompleted";
                                             break;
 
diff --git a/src/pages/Reviewer/ReviewerApplications.tsx b/src/pages/Reviewer/ReviewerApplications.tsx
index e55f9f1..fa8505b 100644
--- a/src/pages/Reviewer/ReviewerApplications.tsx
+++ b/src/pages/Reviewer/ReviewerApplications.tsx
@@ -40,8 +40,8 @@ const FORM_STATUS = [
     "New",
     "Under review",
     "Returned",
-    `${LANG.FORM_STATUS_TEXT.sentForInspection}`,
-    `${LANG.FORM_STATUS_TEXT.inspectionCompleted}`,
+    `${LANG.FORM_STATUS_TEXT.SENT_FOR_INSPECTION}`,
+    `${LANG.FORM_STATUS_TEXT.INSPECTION_COMPLETED}`,
     "Approved"
 ];
 class ReviewerApplications extends Component<ReviewerApplicationsProps, ReviewerApplicationsState> {
diff --git a/src/pages/Reviewer/ReviewerHome.tsx b/src/pages/Reviewer/ReviewerHome.tsx
index ea96b7c..0b28b49 100644
--- a/src/pages/Reviewer/ReviewerHome.tsx
+++ b/src/pages/Reviewer/ReviewerHome.tsx
@@ -125,10 +125,10 @@ export const ReviewerHome = ({ data }: ReviewerProps) => {
         lowerLabel = "Under review";
         return lowerLabel;
       case "Sentforins":
-        lowerLabel = `${LANG.FORM_STATUS_TEXT.sentForInspection}`;
+        lowerLabel = `${LANG.FORM_STATUS_TEXT.SENT_FOR_INSPECTION}`;
         return lowerLabel;
       case "Inscompleted":
-        lowerLabel = `${LANG.FORM_STATUS_TEXT.inspectionCompleted}`;
+        lowerLabel = `${LANG.FORM_STATUS_TEXT.INSPECTION_COMPLETED}`;
         return lowerLabel;
       default:
         return lowerLabel;
-- 
GitLab