Skip to content

Commit

Permalink
updated useQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
saikiranpatil committed Dec 16, 2024
1 parent 58b7805 commit 33ae347
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Facility/LocationManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import RecordMeta from "@/CAREUI/display/RecordMeta";
import CareIcon from "@/CAREUI/icons/CareIcon";
import PaginatedList from "@/CAREUI/misc/PaginatedList";

import { Badge } from "@/components/ui/badge";

import ButtonV2, { Cancel } from "@/components/Common/ButtonV2";
import ConfirmDialog from "@/components/Common/ConfirmDialog";
import DialogModal from "@/components/Common/Dialog";
Expand All @@ -20,8 +22,6 @@ import routes from "@/Utils/request/api";
import request from "@/Utils/request/request";
import useTanStackQueryInstead from "@/Utils/request/useQuery";

import { Badge } from "../ui/badge";

interface Props {
facilityId: string;
}
Expand Down Expand Up @@ -49,7 +49,7 @@ export default function LocationManagement({ facilityId }: Props) {
string | undefined
>(undefined);

useQuery(routes.getPermittedFacility, {
useTanStackQueryInstead(routes.getPermittedFacility, {
pathParams: { id: facilityId },
onResponse: (res) => {
if (res.data) {
Expand Down

0 comments on commit 33ae347

Please sign in to comment.