diff --git a/frontend/src/AuthenticatedSwitch.jsx b/frontend/src/AuthenticatedSwitch.jsx index eb864a797c..bcdff0f5fc 100644 --- a/frontend/src/AuthenticatedSwitch.jsx +++ b/frontend/src/AuthenticatedSwitch.jsx @@ -19,6 +19,7 @@ export default function AuthenticatedSwitch({ showAlert, setShowAlert, showclassicsubmit, + showClassicEncounterSearch, }) { const { data } = useGetMe(); const username = data?.username; @@ -44,6 +45,7 @@ export default function AuthenticatedSwitch({ showAlert={showAlert} setShowAlert={setShowAlert} showclassicsubmit={showclassicsubmit} + showClassicEncounterSearch={showClassicEncounterSearch} /> diff --git a/frontend/src/FrontDesk.jsx b/frontend/src/FrontDesk.jsx index 10094e2a51..828b832dd9 100644 --- a/frontend/src/FrontDesk.jsx +++ b/frontend/src/FrontDesk.jsx @@ -28,7 +28,7 @@ export default function FrontDesk() { const [loading, setLoading] = useState(true); const { data } = useGetSiteSettings(); const showclassicsubmit = data?.showClassicSubmit; - + const showClassicEncounterSearch = data?.showClassicEncounters; const checkLoginStatus = () => { axios .head("/api/v3/user") @@ -93,6 +93,7 @@ export default function FrontDesk() { showAlert={showAlert} setShowAlert={setShowAlert} showclassicsubmit={showclassicsubmit} + showClassicEncounterSearch={showClassicEncounterSearch} /> ); diff --git a/frontend/src/components/AuthenticatedAppHeader.jsx b/frontend/src/components/AuthenticatedAppHeader.jsx index 70860a11fd..c00671eb96 100644 --- a/frontend/src/components/AuthenticatedAppHeader.jsx +++ b/frontend/src/components/AuthenticatedAppHeader.jsx @@ -13,6 +13,7 @@ export default function AuthenticatedAppHeader({ username, avatar, showclassicsubmit, + showClassicEncounterSearch, }) { const { visible } = useContext(FooterVisibilityContext); @@ -74,6 +75,7 @@ export default function AuthenticatedAppHeader({