Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutipanjwani committed Sep 17, 2024
1 parent ce77c07 commit f2613e4
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/app/[netname]/bounty/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 0 additions & 2 deletions src/app/context/web3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ import {
GetBountiesByUserFunction,
GetClaimByIdFunction,
GetClaimsByBountyIdFunction,
GetClaimsByMulticall,
GetClaimsByUserFunction,
GetNftsOfOwnerFunction,
GetOpenBountiesByUserFunction,
GetParticipants,
GetURIFunction,
JoinOpenBountyFunction,
MultiCallInput,
ResolveVoteFunction,
SubmitClaimForVoteFunction,
VoteClaimFunction,
Expand Down
1 change: 0 additions & 1 deletion src/components/bounty/BountyClaimss.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 1 addition & 2 deletions src/components/bounty/BountyInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/components/bounty/ClaimItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 0 additions & 1 deletion src/components/bounty/ClaimList.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useEffect, useState } from 'react';

import { ClaimItem, Voting } from '@/components/bounty';

import { useBountyContext } from '@/components/bounty';

interface Claim {
Expand Down
3 changes: 1 addition & 2 deletions src/components/bounty/Voting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -21,7 +21,6 @@ const Voting: React.FC<VotingProps> = ({ bountyId }) => {
setCurrency(pathname.split('/')[1] === 'degen' ? 'degen' : 'eth');
}, [pathname]);


const weiToEth = (weiValue: string) => parseFloat(weiValue) / 10 ** 18;

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
4 changes: 2 additions & 2 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit f2613e4

Please sign in to comment.