diff --git a/src/Components/Facility/FacilityHome.tsx b/src/Components/Facility/FacilityHome.tsx index 1b362d9e4f0..82ee82afb22 100644 --- a/src/Components/Facility/FacilityHome.tsx +++ b/src/Components/Facility/FacilityHome.tsx @@ -38,6 +38,10 @@ import { LocationSelect } from "../Common/LocationSelect.js"; import { CameraFeedPermittedUserTypes } from "../../Utils/permissions.js"; import { FacilityStaffList } from "./FacilityStaffList.js"; +type Props = { + facilityId: string; +}; + const Loading = lazy(() => import("../Common/Loading")); export const getFacilityFeatureIcon = (featureId: number) => { @@ -50,12 +54,10 @@ export const getFacilityFeatureIcon = (featureId: number) => { ); }; -export const FacilityHome = (props: any) => { +export const FacilityHome = ({ facilityId }: Props) => { const { t } = useTranslation(); - const { facilityId } = props; const [openDeleteDialog, setOpenDeleteDialog] = useState(false); const [editCoverImage, setEditCoverImage] = useState(false); - const [imageKey, setImageKey] = useState(Date.now()); const authUser = useAuthUser(); useMessageListener((data) => console.log(data)); @@ -112,7 +114,10 @@ export const FacilityHome = (props: any) => { const editCoverImageTooltip = hasPermissionToEditCoverImage && (