Correction in api for details.
This commit is contained in:
parent
8f86b05d35
commit
195a0c83bb
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user