From f2613e45673d8753b0de7798bdca54e73fbf58aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cshrutipanjwani=E2=80=9D?= Date: Tue, 17 Sep 2024 22:45:32 +0530 Subject: [PATCH] fix: lint errors --- src/app/[netname]/bounty/[id]/page.tsx | 2 +- src/app/context/web3.tsx | 2 -- src/components/bounty/BountyClaimss.tsx | 1 - src/components/bounty/BountyInfo.tsx | 3 +-- src/components/bounty/ClaimItem.tsx | 2 +- src/components/bounty/ClaimList.tsx | 1 - src/components/bounty/Voting.tsx | 3 +-- src/components/ui/index.ts | 2 +- src/lib/index.ts | 4 ++-- 9 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/app/[netname]/bounty/[id]/page.tsx b/src/app/[netname]/bounty/[id]/page.tsx index 77359c32..b2a44b9f 100644 --- a/src/app/[netname]/bounty/[id]/page.tsx +++ b/src/app/[netname]/bounty/[id]/page.tsx @@ -1,9 +1,9 @@ 'use client'; import * as React from 'react'; +import { ToastContainer } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; -import { ToastContainer } from 'react-toastify'; import ContentBounty from '@/components/layout/ContentBounty'; diff --git a/src/app/context/web3.tsx b/src/app/context/web3.tsx index c2730094..f95968b4 100644 --- a/src/app/context/web3.tsx +++ b/src/app/context/web3.tsx @@ -20,14 +20,12 @@ import { GetBountiesByUserFunction, GetClaimByIdFunction, GetClaimsByBountyIdFunction, - GetClaimsByMulticall, GetClaimsByUserFunction, GetNftsOfOwnerFunction, GetOpenBountiesByUserFunction, GetParticipants, GetURIFunction, JoinOpenBountyFunction, - MultiCallInput, ResolveVoteFunction, SubmitClaimForVoteFunction, VoteClaimFunction, diff --git a/src/components/bounty/BountyClaimss.tsx b/src/components/bounty/BountyClaimss.tsx index 1225ead9..3bb775ce 100644 --- a/src/components/bounty/BountyClaimss.tsx +++ b/src/components/bounty/BountyClaimss.tsx @@ -3,7 +3,6 @@ import React, { useEffect, useState } from 'react'; import { useGetChain } from '@/hooks'; import { ClaimList, NoClaim, useBountyContext } from '@/components/bounty'; - import { bountyCurrentVotingClaim, getClaimsByBountyId } from '@/app/context'; import { Blacklist, BlacklistedBounties } from '@/constant'; import { BlackListClaims, Claim } from '@/types'; diff --git a/src/components/bounty/BountyInfo.tsx b/src/components/bounty/BountyInfo.tsx index d3d5fed5..f0b63a94 100644 --- a/src/components/bounty/BountyInfo.tsx +++ b/src/components/bounty/BountyInfo.tsx @@ -3,8 +3,7 @@ import Link from 'next/link'; import React from 'react'; import { toast } from 'react-toastify'; -import { weiToEth, applyBreakAllToLongWords } from '@/lib'; - +import { applyBreakAllToLongWords, weiToEth } from '@/lib'; import { useGetChain } from '@/hooks'; import { BountyMultiplayer, useBountyContext } from '@/components/bounty'; import { CreateClaim } from '@/components/ui'; diff --git a/src/components/bounty/ClaimItem.tsx b/src/components/bounty/ClaimItem.tsx index 3f634b34..42263779 100644 --- a/src/components/bounty/ClaimItem.tsx +++ b/src/components/bounty/ClaimItem.tsx @@ -5,7 +5,7 @@ import { LiaCopySolid } from 'react-icons/lia'; import { toast } from 'react-toastify'; import { applyBreakAllToLongWords } from '@/lib/uiHelpers'; -import { useGetChain, useDegenOrEnsName } from '@/hooks'; +import { useDegenOrEnsName, useGetChain } from '@/hooks'; import { useBountyContext } from '@/components/bounty'; import { acceptClaim, getURI, submitClaimForVote } from '@/app/context'; import { ErrorInfo } from '@/types'; diff --git a/src/components/bounty/ClaimList.tsx b/src/components/bounty/ClaimList.tsx index 7cfa4bf6..3cc504f2 100644 --- a/src/components/bounty/ClaimList.tsx +++ b/src/components/bounty/ClaimList.tsx @@ -1,7 +1,6 @@ import React, { useEffect, useState } from 'react'; import { ClaimItem, Voting } from '@/components/bounty'; - import { useBountyContext } from '@/components/bounty'; interface Claim { diff --git a/src/components/bounty/Voting.tsx b/src/components/bounty/Voting.tsx index 02d58726..4d548235 100644 --- a/src/components/bounty/Voting.tsx +++ b/src/components/bounty/Voting.tsx @@ -5,7 +5,7 @@ import React, { useEffect, useState } from 'react'; import { toast } from 'react-toastify'; import { bountyVotingTracker, resolveVote, voteClaim } from '@/app/context'; -import { VotingTracker, ErrorInfo } from '@/types'; +import { ErrorInfo, VotingTracker } from '@/types'; interface VotingProps { bountyId: string; @@ -21,7 +21,6 @@ const Voting: React.FC = ({ bountyId }) => { setCurrency(pathname.split('/')[1] === 'degen' ? 'degen' : 'eth'); }, [pathname]); - const weiToEth = (weiValue: string) => parseFloat(weiValue) / 10 ** 18; useEffect(() => { diff --git a/src/components/ui/index.ts b/src/components/ui/index.ts index 4697b52b..c21e373d 100644 --- a/src/components/ui/index.ts +++ b/src/components/ui/index.ts @@ -5,7 +5,7 @@ export { default as ButtonCTA } from './ButtonCTA'; export { default as CreateBounty } from './CreateBounty'; export { default as CreateClaim } from './CreateClaim'; export { default as FilterButton } from './FilterButton'; +export { default as JoinBounty } from './JoinBounty'; export { default as Logo } from './Logo'; export { default as NetworkSelector } from './NetworkSelector'; -export { default as JoinBounty } from './JoinBounty'; export { default as Withdraw } from './Withdraw'; diff --git a/src/lib/index.ts b/src/lib/index.ts index 1eb5b945..4433d170 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,11 +1,11 @@ export { weiToEth as weiToEth } from './eth'; -export { default as publicClient } from './publicClient'; -export { applyBreakAllToLongWords as applyBreakAllToLongWords } from './uiHelpers'; export { buildMetadata as buildMetadata, uploadFile as uploadFile, uploadMetadata as uploadMetadata, } from './pinata'; +export { default as publicClient } from './publicClient'; +export { applyBreakAllToLongWords as applyBreakAllToLongWords } from './uiHelpers'; export { cn as cn, getNetworkNameFromPath as getNetworkNameFromPath,