From 03a0b7d475dcb036dd9632b3d38d29c77691814c Mon Sep 17 00:00:00 2001 From: Sulochan Khadka <122200551+Sulochan-khadka@users.noreply.github.com> Date: Mon, 15 Apr 2024 23:41:09 +0530 Subject: [PATCH] Lint errors fix --- src/Components/Facility/FacilityUsers.tsx | 31 ++++++++++------------- 1 file changed, 14 insertions(+), 17 deletions(-) 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 ( - <> -
No Facilities!
- {showLinkFacility(username)} - - ); - } + // const showFacilities = (username: string, facilities: FacilityModel[]) => { + // if (!facilities || !facilities.length) { + // return ( + // <> + //
No Facilities!
+ // {showLinkFacility(username)} + // + // ); + // } return (
@@ -329,11 +326,11 @@ export default function FacilityUsers(props: any) { {user.username && ( - { - setExpandFacilityList(!expandFacilityList); + { + setExpandFacilityList(!expandFacilityList); setSelectedUser(user); }} >