Skip to content

Commit

Permalink
chore: clean up project page ff (#4079)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomquirk authored Sep 20, 2023
1 parent 139eda5 commit 388329b
Show file tree
Hide file tree
Showing 384 changed files with 233 additions and 4,214 deletions.
2 changes: 1 addition & 1 deletion src/components/AccountDashboard/AccountDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { SettingOutlined } from '@ant-design/icons'
import { t, Trans } from '@lingui/macro'
import { Button, Tabs } from 'antd'
import ActivityList from 'components/ActivityList'
import { SocialButton } from 'components/buttons/SocialButton'
import EthereumAddress from 'components/EthereumAddress'
import Grid from 'components/Grid'
import { Etherscan } from 'components/icons/Etherscan'
Expand All @@ -11,7 +12,6 @@ import Paragraph from 'components/Paragraph'
import SocialLinks from 'components/Project/ProjectHeader/SocialLinks'
import ProjectCard from 'components/ProjectCard'
import ProjectLogo from 'components/ProjectLogo'
import { SocialButton } from 'components/SocialButton'
import WalletContributionCard from 'components/WalletContributionCard'
import {
OrderDirection,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { t } from '@lingui/macro'
import { Form } from 'antd'
import { Selection } from 'components/Create/components/Selection'
import { CustomStrategyInput } from 'components/ReconfigurationStrategy/CustomStrategyInput'
import { inputMustExistRule, inputMustBeEthAddressRule } from 'utils/antdRules'
import { CustomStrategyInput } from 'components/inputs/ReconfigurationStrategy/CustomStrategyInput'
import { inputMustBeEthAddressRule, inputMustExistRule } from 'utils/antdRules'

export const CustomRuleCard = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Checkbox, Form } from 'antd'
import { Callout } from 'components/Callout'
import { useDeployProject } from 'components/Create/hooks/DeployProject'
import ExternalLink from 'components/ExternalLink'
import { emitConfirmationDeletionModal } from 'components/ProjectDashboard/utils/modals'
import TransactionModal from 'components/modals/TransactionModal'
import { emitConfirmationDeletionModal } from 'components/v2v3/V2V3Project/ProjectDashboard/utils/modals'
import { TERMS_OF_SERVICE_URL } from 'constants/links'
import { useWallet } from 'hooks/Wallet'
import useMobile from 'hooks/useMobile'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { ArrowRightIcon } from '@heroicons/react/24/solid'
import { Trans, t } from '@lingui/macro'
import { Button } from 'antd'
import ExternalLink from 'components/ExternalLink'
import { XLButton } from 'components/XLButton'
import { NEW_DEPLOY_QUERY_PARAM } from 'components/v2v3/V2V3Project/modals/NewDeployModal'
import { XLButton } from 'components/buttons/XLButton'
import { readNetwork } from 'constants/networks'
import { useWallet } from 'hooks/Wallet'
import { NetworkName } from 'models/networkName'
Expand All @@ -13,6 +12,8 @@ import { useRouter } from 'next/router'
import { useCallback, useMemo, useState } from 'react'
import DeploySuccessHero from '/public/assets/images/create-success-hero.webp'

const NEW_DEPLOY_QUERY_PARAM = 'np'

export const DeploySuccess = ({ projectId }: { projectId: number }) => {
console.info('Deploy: SUCCESS', projectId)
const router = useRouter()
Expand Down
20 changes: 0 additions & 20 deletions src/components/Home/FaqList/FaqList.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Home/FaqList/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Trans, t } from '@lingui/macro'
import ExternalLink from 'components/ExternalLink'
import { SectionContainer } from 'components/Home/SectionContainer'
import { SectionHeading } from 'components/Home/SectionHeading'
import { XLButton } from 'components/XLButton'
import { XLButton } from 'components/buttons/XLButton'
import Image from 'next/image'
import Link from 'next/link'
import sassyBlueberry from '/public/assets/images/sassy-blueberry.webp'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useFetchJuicyPicks } from 'components/Home/JuicyPicksSection/hooks/useJ
import { ProjectCarousel } from 'components/Home/ProjectCarousel'
import { SectionContainer } from 'components/Home/SectionContainer'
import { SectionHeading } from 'components/Home/SectionHeading'
import { XLButton } from 'components/XLButton'
import { XLButton } from 'components/buttons/XLButton'
import { useMedia } from 'contexts/Theme/useMedia'
import Link from 'next/link'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ProjectCarousel } from 'components/Home/ProjectCarousel'
import { SectionContainer } from 'components/Home/SectionContainer'
import { SectionHeading } from 'components/Home/SectionHeading'
import { SuccessStoriesCard } from 'components/Home/SuccessStoriesSection/SuccessStoriesCard'
import { XLButton } from 'components/XLButton'
import { XLButton } from 'components/buttons/XLButton'
import { CASE_STUDY_PROJECTS } from 'constants/successStoryProjects'
import { useMedia } from 'contexts/Theme/useMedia'
import { useDBProjectsQuery } from 'hooks/useProjects'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Home/TopSection/TopSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ProjectCarousel } from 'components/Home/ProjectCarousel'
import { SectionContainer } from 'components/Home/SectionContainer'
import { SectionHeading } from 'components/Home/SectionHeading'
import { ProjectTag } from 'components/ProjectTags/ProjectTag'
import { XLButton } from 'components/XLButton'
import { XLButton } from 'components/buttons/XLButton'
import { HOMEPAGE } from 'constants/fathomEvents'
import { useTrendingProjects } from 'hooks/useProjects'
import { trackFathomGoal } from 'lib/fathom'
Expand Down
2 changes: 1 addition & 1 deletion src/components/JuiceVideo/JuiceVideoOrImgPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ImageProps } from 'next/image'
import { stopPropagation } from 'react-stop-propagation'
import { fileTypeIsVideo } from 'utils/nftRewards'

export const JUICE_IMG_PREVIEW_CONTAINER_CLASS =
const JUICE_IMG_PREVIEW_CONTAINER_CLASS =
'fixed top-0 left-0 z-[10000] flex h-full w-full items-center justify-center overflow-auto bg-[rgba(0,0,0,0.8)] p-5 cursor-default'

export function JuiceVideoOrImgPreview({
Expand Down
2 changes: 0 additions & 2 deletions src/components/NftRewards/NftPostPayModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import Modal from 'antd/lib/modal/Modal'
import { NftPostPayModalConfig } from 'models/nftRewards'
import { withHttps } from 'utils/externalLink'

export const NFT_PAYMENT_CONFIRMED_QUERY_PARAM = 'nft_s'

export function NftPostPayModal({
open,
config,
Expand Down
181 changes: 0 additions & 181 deletions src/components/NftRewards/NftRewardsSection.tsx

This file was deleted.

6 changes: 2 additions & 4 deletions src/components/Project/FundingCycleSection.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { Trans } from '@lingui/macro'

import { useState } from 'react'

import SectionHeader from 'components/SectionHeader'
import { Tab } from 'components/Tab'
import { useState } from 'react'

export type TabType = {
type TabType = {
key: string
label: string | JSX.Element
content: JSX.Element
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ import { CurrencyOption } from 'models/currencyOption'
import { Dispatch, SetStateAction, useContext, useState } from 'react'
import { parseWad } from 'utils/format/formatNumber'

export interface JB721DELAGATE_V3_PAY_METADATA {
interface JB721DELAGATE_V3_PAY_METADATA {
tierIdsToMint: number[]
dontMint?: boolean
expectMintFromExtraFunds?: boolean
dontOverspend?: boolean
}

export interface JB721DELAGATE_V3_1_PAY_METADATA {
interface JB721DELAGATE_V3_1_PAY_METADATA {
tierIdsToMint: number[]
allowOverspending?: boolean
}

export type JB721DELAGATE_V3_2_PAY_METADATA = JB721DELAGATE_V3_1_PAY_METADATA

type PayMetadata =
| JB721DELAGATE_V3_PAY_METADATA
| JB721DELAGATE_V3_1_PAY_METADATA // in future, maybe more
Expand Down
2 changes: 1 addition & 1 deletion src/components/Project/ProjectHeader/SocialLinks.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { GlobalOutlined, TwitterOutlined } from '@ant-design/icons'
import { SocialButton } from 'components/buttons/SocialButton'
import Discord from 'components/icons/Discord'
import Telegram from 'components/icons/Telegram'
import { SocialButton } from 'components/SocialButton'
import useMobile from 'hooks/useMobile'
import { twMerge } from 'tailwind-merge'

Expand Down
Loading

2 comments on commit 388329b

@vercel
Copy link

@vercel vercel bot commented on 388329b Sep 20, 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 388329b Sep 20, 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.