From f7b83d7697df592e32de3139237747b507e1ccb1 Mon Sep 17 00:00:00 2001 From: Ashutosh Kumar Date: Tue, 20 Aug 2024 03:14:06 +0530 Subject: [PATCH] Removed Unused Code --- src/services/services/dao/hooks/useLiteDAO.ts | 10 ---------- src/services/services/lite/lite-services.ts | 11 +---------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 src/services/services/dao/hooks/useLiteDAO.ts diff --git a/src/services/services/dao/hooks/useLiteDAO.ts b/src/services/services/dao/hooks/useLiteDAO.ts deleted file mode 100644 index 810de2dc..00000000 --- a/src/services/services/dao/hooks/useLiteDAO.ts +++ /dev/null @@ -1,10 +0,0 @@ -// import { useQuery } from "@tanstack/react-query" -// import { useTezos } from "services/beacon/hooks/useTezos" - -// export const useLiteDAO = (address: string){ -// const { network } = useTezos() -// const { data, ...rest } = useQuery({ -// queryKey: ["lite-dao", address, network], -// queryFn: () => getLiteDAO(address, network) -// }) -// } diff --git a/src/services/services/lite/lite-services.ts b/src/services/services/lite/lite-services.ts index 065617af..a24fc0c9 100644 --- a/src/services/services/lite/lite-services.ts +++ b/src/services/services/lite/lite-services.ts @@ -1,4 +1,4 @@ -import { client, client_v2 } from "../graphql" +import { client } from "../graphql" import { Community, DAOListItem, DAOXTZTransferDTO, FetchedDAO, FetchedProposal, FetchedProposals } from "../types" import { GET_DAO_QUERY, GET_PROPOSALS_QUERY, GET_PROPOSAL_QUERY, GET_XTZ_TRANSFERS } from "../dao/queries" import { LambdaProposal, Proposal } from "../dao/mappers/proposal/types" @@ -42,15 +42,6 @@ export const getLiteDAOs = async (network: string) => { "Content-Type": "application/json" } }) - // const resp = await fetch(`${REACT_APP_LITE_API_URL}/daos/`, { - // method: "POST", - // body: JSON.stringify({ - // network - // }), - // headers: { - // "Content-Type": "application/json" - // } - // }) const daos: Community[] = await resp.json()