Skip to content

Commit

Permalink
chore: fix constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Laughing0900 committed Oct 9, 2024
1 parent 4f4e0d3 commit f7c00a3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/projectDetails/hooks/useProjectsDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useMemo } from "react";
import useSWR from "swr";
import { ProjectCardProps } from "@/components/project/types/projectTypes";
import { API_ENDPOINT } from "@/consts/apis";
import { fetcher } from "@/lib/utils";

export type ProjectType = ProjectCardProps & {
Expand All @@ -19,8 +18,6 @@ export const useProjectsDetails = ({
isLoading: boolean;
} => {
const url = `/api/project-details?id=${projectId}`;
// const url = API_ENDPOINT + `/project-details?id=${projectId}`;
console.log(url);
const { data: response, isLoading } = useSWR(url, fetcher);

const data = useMemo(() => {
Expand Down

0 comments on commit f7c00a3

Please sign in to comment.