diff --git a/src/Components/Facility/FacilityUsers.tsx b/src/Components/Facility/FacilityUsers.tsx index 27febfd6dbe..1840220aea4 100644 --- a/src/Components/Facility/FacilityUsers.tsx +++ b/src/Components/Facility/FacilityUsers.tsx @@ -7,7 +7,6 @@ import { classNames, isUserOnline, relativeTime, - showUserDelete, } from "../../Utils/utils"; import SlideOverCustom from "../../CAREUI/interactive/SlideOver"; import Pagination from "../Common/Pagination"; @@ -21,11 +20,9 @@ import UserDeleteDialog from "../Users/UserDeleteDialog"; import request from "../../Utils/request/request"; import routes from "../../Redux/api"; import useQuery from "../../Utils/request/useQuery"; -import { UserModel } from "../Users/models"; import { UserFacilities } from "../Users/ManageUsers"; import { useTranslation } from "react-i18next"; - const Loading = lazy(() => import("../Common/Loading")); export default function FacilityUsers(props: any) { @@ -186,15 +183,15 @@ export default function FacilityUsers(props: any) { ); }; - const showFacilities = (username: string, facilities: FacilityModel[]) => { - if (!facilities || !facilities.length) { - return ( - <> -