Skip to content

Commit ae1e4ad

Browse files
authored
chore: prune (#4186)
1 parent b51b14f commit ae1e4ad

File tree

17 files changed

+20
-397
lines changed

17 files changed

+20
-397
lines changed

src/components/Create/components/pages/PayoutsPage/components/CreateFlowPayoutsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { V2V3CurrencyName, getV2V3CurrencyOption } from 'utils/v2v3/currency'
1010
import { MAX_DISTRIBUTION_LIMIT } from 'utils/v2v3/math'
1111
import { usePayoutsForm } from '../hooks/usePayoutsForm'
1212

13-
export const DEFAULT_CURRENCY_NAME = CURRENCY_METADATA.ETH.name
13+
const DEFAULT_CURRENCY_NAME = CURRENCY_METADATA.ETH.name
1414

1515
export function CreateFlowPayoutsTable({
1616
onFinish,

src/components/Create/components/pages/PayoutsPage/components/PayoutsList.tsx

Lines changed: 0 additions & 136 deletions
This file was deleted.

src/components/Create/components/pages/PayoutsPage/hooks/useFundingTarget.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/components/DomainBadge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { twMerge } from 'tailwind-merge'
55
import { getJuicecrowdUrl } from 'utils/juicecrowd'
66
import { Badge } from './Badge'
77

8-
export type DomainBadgeProps = {
8+
type DomainBadgeProps = {
99
className?: string
1010
domain: string | undefined
1111
projectId?: number

src/components/v2v3/V2V3Project/ProjectDashboard/components/Cart/components/CartItem/CartItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ReactNode, useMemo } from 'react'
55
import { twMerge } from 'tailwind-merge'
66
import { formatCurrencyAmount } from 'utils/formatCurrencyAmount'
77

8-
export type CartItemProps = {
8+
type CartItemProps = {
99
className?: string
1010
title: ReactNode
1111
price: { amount: number; currency: V2V3CurrencyOption } | null

src/components/v2v3/V2V3Project/ProjectDashboard/components/CyclesPayoutsPanel/CyclesPayoutsPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { CurrentUpcomingSubPanel } from './components/CurrentUpcomingSubPanel'
55
import { CyclesTab } from './components/CyclesTab'
66
import { HistorySubPanel } from './components/HistorySubPanel'
77

8-
export type CyclesSubPanel = {
8+
type CyclesSubPanel = {
99
id: 'current' | 'upcoming' | 'history'
1010
name: string
1111
}

src/components/v2v3/V2V3Project/ProjectDashboard/components/TokensPanel/components/AddTokenToMetamaskButton.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import type { MetaMaskInpageProvider } from '@metamask/providers'
33
import { Button } from 'antd'
44
import { V2V3ProjectContext } from 'contexts/v2v3/Project/V2V3ProjectContext'
55
import { providers } from 'ethers'
6-
import { useWallet } from 'hooks/Wallet'
7-
import { useContext, useMemo } from 'react'
6+
import { useContext } from 'react'
87
import { twMerge } from 'tailwind-merge'
98

109
declare global {
@@ -13,15 +12,15 @@ declare global {
1312
}
1413
}
1514

16-
export const useProviderIsMetamask = () => {
17-
const { signer } = useWallet()
18-
const isMetamask = useMemo(() => {
19-
return signer?.provider.connection.url === 'metamask'
20-
}, [signer])
21-
return isMetamask
22-
}
15+
// const useProviderIsMetamask = () => {
16+
// const { signer } = useWallet()
17+
// const isMetamask = useMemo(() => {
18+
// return signer?.provider.connection.url === 'metamask'
19+
// }, [signer])
20+
// return isMetamask
21+
// }
2322

24-
export const useMetamask = () => {
23+
const useMetamask = () => {
2524
const ethereum = global?.window?.ethereum
2625
if (!ethereum || !ethereum.isMetaMask) return
2726
return ethereum as unknown as MetaMaskInpageProvider

src/components/v2v3/V2V3Project/ProjectDashboard/hooks/usePayProjectCard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as Yup from 'yup'
66
import { useProjectCart } from './useProjectCart'
77
import { useProjectContext } from './useProjectContext'
88

9-
export const PayProjectCardSchema = Yup.object().shape({
9+
const PayProjectCardSchema = Yup.object().shape({
1010
payAmount: Yup.object()
1111
.shape({
1212
amount: Yup.number()

src/components/v2v3/V2V3Project/V2V3FundingCycleSection/FundingCycleHistory/utils.ts

Lines changed: 0 additions & 143 deletions
This file was deleted.

src/components/v2v3/shared/FundingCycleConfigurationDrawers/NftDrawer/index.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)