diff --git a/src/components/form/FormViewer.js b/src/components/form/FormViewer.js index b4eda9c25d23a5c5dfe134d9d453f914c755cc89..bdb16423140b32db6ec7692433b36237a6f33e34 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 0ebfc04f0080995ac3aa9ea2a5f1881b43cdfc21..ebdd64760dbf73cc71d57ac2296d6bad48985d9c 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 && (