Skip to content

Commit

Permalink
Lint errors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sulochan-khadka authored Apr 15, 2024
1 parent 8ea9e6e commit 03a0b7d
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions src/Components/Facility/FacilityUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
classNames,
isUserOnline,
relativeTime,
showUserDelete,
} from "../../Utils/utils";
import SlideOverCustom from "../../CAREUI/interactive/SlideOver";
import Pagination from "../Common/Pagination";
Expand All @@ -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) {
Expand Down Expand Up @@ -186,15 +183,15 @@ export default function FacilityUsers(props: any) {
);
};

const showFacilities = (username: string, facilities: FacilityModel[]) => {
if (!facilities || !facilities.length) {
return (
<>
<div className="font-semibold">No Facilities!</div>
{showLinkFacility(username)}
</>
);
}
// const showFacilities = (username: string, facilities: FacilityModel[]) => {
// if (!facilities || !facilities.length) {
// return (
// <>
// <div className="font-semibold">No Facilities!</div>
// {showLinkFacility(username)}
// </>
// );
// }
return (
<div className="col-span-full sm:col-span-3 sm:col-start-2">
<div className="mb-2">
Expand Down Expand Up @@ -329,11 +326,11 @@ export default function FacilityUsers(props: any) {

{user.username && (
<UserDetails title="Facilities">
<ButtonV2
id="facilities"
className="flex w-full items-center @sm:w-1/2"
onClick={() => {
setExpandFacilityList(!expandFacilityList);
<ButtonV2
id="facilities"
className="flex w-full items-center @sm:w-1/2"
onClick={() => {
setExpandFacilityList(!expandFacilityList);
setSelectedUser(user);
}}
>
Expand Down

0 comments on commit 03a0b7d

Please sign in to comment.