Skip to content

Commit

Permalink
chore: prune (#4186)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomquirk authored Dec 27, 2023
1 parent b51b14f commit ae1e4ad
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 397 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { V2V3CurrencyName, getV2V3CurrencyOption } from 'utils/v2v3/currency'
import { MAX_DISTRIBUTION_LIMIT } from 'utils/v2v3/math'
import { usePayoutsForm } from '../hooks/usePayoutsForm'

export const DEFAULT_CURRENCY_NAME = CURRENCY_METADATA.ETH.name
const DEFAULT_CURRENCY_NAME = CURRENCY_METADATA.ETH.name

export function CreateFlowPayoutsTable({
onFinish,
Expand Down

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/DomainBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { twMerge } from 'tailwind-merge'
import { getJuicecrowdUrl } from 'utils/juicecrowd'
import { Badge } from './Badge'

export type DomainBadgeProps = {
type DomainBadgeProps = {
className?: string
domain: string | undefined
projectId?: number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ReactNode, useMemo } from 'react'
import { twMerge } from 'tailwind-merge'
import { formatCurrencyAmount } from 'utils/formatCurrencyAmount'

export type CartItemProps = {
type CartItemProps = {
className?: string
title: ReactNode
price: { amount: number; currency: V2V3CurrencyOption } | null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CurrentUpcomingSubPanel } from './components/CurrentUpcomingSubPanel'
import { CyclesTab } from './components/CyclesTab'
import { HistorySubPanel } from './components/HistorySubPanel'

export type CyclesSubPanel = {
type CyclesSubPanel = {
id: 'current' | 'upcoming' | 'history'
name: string
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import type { MetaMaskInpageProvider } from '@metamask/providers'
import { Button } from 'antd'
import { V2V3ProjectContext } from 'contexts/v2v3/Project/V2V3ProjectContext'
import { providers } from 'ethers'
import { useWallet } from 'hooks/Wallet'
import { useContext, useMemo } from 'react'
import { useContext } from 'react'
import { twMerge } from 'tailwind-merge'

declare global {
Expand All @@ -13,15 +12,15 @@ declare global {
}
}

export const useProviderIsMetamask = () => {
const { signer } = useWallet()
const isMetamask = useMemo(() => {
return signer?.provider.connection.url === 'metamask'
}, [signer])
return isMetamask
}
// const useProviderIsMetamask = () => {
// const { signer } = useWallet()
// const isMetamask = useMemo(() => {
// return signer?.provider.connection.url === 'metamask'
// }, [signer])
// return isMetamask
// }

export const useMetamask = () => {
const useMetamask = () => {
const ethereum = global?.window?.ethereum
if (!ethereum || !ethereum.isMetaMask) return
return ethereum as unknown as MetaMaskInpageProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as Yup from 'yup'
import { useProjectCart } from './useProjectCart'
import { useProjectContext } from './useProjectContext'

export const PayProjectCardSchema = Yup.object().shape({
const PayProjectCardSchema = Yup.object().shape({
payAmount: Yup.object()
.shape({
amount: Yup.number()
Expand Down

This file was deleted.

This file was deleted.

8 changes: 4 additions & 4 deletions src/constants/fileTypes.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { NftFileType } from 'components/inputs/UploadNoStyle'

export const MP4_FILE_TYPE = 'video/mp4'
export const MOV_FILE_TYPE = 'video/quicktime'
export const WEBM_FILE_TYPE = 'video/webm'
export const M4V_FILE_TYPE = 'video/x-m4v'
const MP4_FILE_TYPE = 'video/mp4'
const MOV_FILE_TYPE = 'video/quicktime'
const WEBM_FILE_TYPE = 'video/webm'
const M4V_FILE_TYPE = 'video/x-m4v'
export const VIDEO_FILE_TYPES: NftFileType[] = [
MP4_FILE_TYPE,
MOV_FILE_TYPE,
Expand Down
Loading

2 comments on commit ae1e4ad

@vercel
Copy link

@vercel vercel bot commented on ae1e4ad Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on ae1e4ad Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.