Correction in api for details.

This commit is contained in:
Kartik Sharma 2025-11-20 10:00:06 +05:30
parent 8f86b05d35
commit 195a0c83bb

View File

@ -1,5 +1,5 @@
import React, { useState } from "react";
import { useBranch } from "../../../hooks/useServiceProject";
import { useBranchDetails } from "../../../hooks/useServiceProject";
import { SpinnerLoader } from "../../common/Loader";
import Error from "../../common/Error";
import { BranchDetailsSkeleton } from "../ServiceProjectSeketon";
@ -7,7 +7,7 @@ import { BranchDetailsSkeleton } from "../ServiceProjectSeketon";
const BranchDetails = ({ branch }) => {
const [copied, setCopied] = useState(false);
const { data, isLoading, isError, error } = useBranch(branch);
const { data, isLoading, isError, error } = useBranchDetails(branch);
const googleMapUrl = data?.googleMapUrl || data?.locationLink;