From 73aa280bc468023498f6fc12ce5f290676f117ff Mon Sep 17 00:00:00 2001
From: BharathTarento <bharath.kumar@tarento.cocom>
Date: Wed, 7 Dec 2022 12:39:01 +0530
Subject: [PATCH] changes in the statusbar

---
 src/components/form/FormViewer.js            | 1 +
 src/components/status-bar/StatusBarLarge.tsx | 8 +++++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/components/form/FormViewer.js b/src/components/form/FormViewer.js
index b4eda9c..bdb1642 100644
--- a/src/components/form/FormViewer.js
+++ b/src/components/form/FormViewer.js
@@ -648,6 +648,7 @@ class FormViewer extends Component {
                                   ? this.state.applicationDetails.notes
                                   : ""
                               }
+                              userRole={this.userRole}
                               inspectorSummary={
                                 this.state.applicationDetails.status ===
                                 LANG.FORM_STATUS.INSPECTION_COMPLETED
diff --git a/src/components/status-bar/StatusBarLarge.tsx b/src/components/status-bar/StatusBarLarge.tsx
index 0ebfc04..ebdd647 100644
--- a/src/components/status-bar/StatusBarLarge.tsx
+++ b/src/components/status-bar/StatusBarLarge.tsx
@@ -1,6 +1,6 @@
 import styles from "./StatusBarLarge.module.css";
 import stylesTwo from "../modal/InspectionScheduleModal.module.css";
-import { LANG } from "../../constants";
+import { APP, LANG } from "../../constants";
 import moment from "moment";
 import { HeadingFour } from "../headings";
 
@@ -22,6 +22,7 @@ interface StatusBarLargeProps {
   comments?: any;
   approvedNote?: string;
   showInspectionDetails: boolean;
+  userRole?:any;
 }
 
 export const StatusBarLarge = ({
@@ -37,6 +38,7 @@ export const StatusBarLarge = ({
   isChange,
   approvedNote,
   showInspectionDetails,
+  userRole
 }: StatusBarLargeProps) => {
   // Function to format the status label
   const formatLabel = (labelStatus: string) => {
@@ -149,8 +151,8 @@ export const StatusBarLarge = ({
       {label && label === LANG.FORM_STATUS.SENT_FOR_INSPECTION && (
         <>
           <p className="text-center pt-3">
-            Inspection is scheduled on{" "}
-            <b>{`${inspectionData.scheduledDate}`}</b>. Keep all the physical
+            Inspection is scheduled 
+            <b>{userRole !== APP.ROLE.INSTITUTION && `on ${inspectionData.scheduledDate}`}</b>. Keep all the physical
             documents ready for the inspection.
           </p>
           {showInspectionDetails && (
-- 
GitLab