Skip to content

Commit

Permalink
chore: nuke v3 upgrade funding cycle (#4248)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomquirk authored Feb 7, 2024
1 parent 59dbbb4 commit 0913e4d
Show file tree
Hide file tree
Showing 56 changed files with 47 additions and 4,292 deletions.
File renamed without changes.
20 changes: 20 additions & 0 deletions src/components/announcements/Announcement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@ export function getCompleted() {
return (content ? JSON.parse(content) : {}) as { [k: string]: true }
}

/**
*
* @example
export const ExampleFeatureAnnouncement = (
props: Pick<JuiceModalProps, 'open' | 'setOpen'>,
) => {
return (
<NewFeatureAnnouncement
{...props}
title="Example Feature"
position="topRight"
okText="Got it"
hideCancelButton
>
<p>This is an example feature announcement.</p>
<p>Use me as a base!</p>
</NewFeatureAnnouncement>
)
}
*/
export const Announcement: React.FC<
React.PropsWithChildren<JuiceModalProps>
> = props => {
Expand Down
22 changes: 0 additions & 22 deletions src/components/announcements/ExampleFeatureAnnouncement.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CloseCircleOutlined, LockOutlined } from '@ant-design/icons'
import { Button, Col, Row, Space } from 'antd'
import { AllocatorBadge } from 'components/AllocatorBadge'
import EthereumAddress from 'components/EthereumAddress'
import CurrencySymbol from 'components/currency/CurrencySymbol'
import { AllocatorBadge } from 'components/v2v3/shared/FundingCycleConfigurationDrawers/AllocatorBadge'
import {
NULL_ALLOCATOR_ADDRESS,
V1_V3_ALLOCATOR_ADDRESS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useFundingCycleCountdown } from '../hooks/useFundingCycleCountdown'

const RS_PROJECT_ID = 618

export type ProjectHeaderCountdownProps = {
type ProjectHeaderCountdownProps = {
className?: string
}

Expand Down Expand Up @@ -45,13 +45,7 @@ export const ProjectHeaderCountdown: React.FC<ProjectHeaderCountdownProps> = ({
)
}

export const CountdownCard = ({
label,
unit,
}: {
label: ReactNode
unit: number
}) => (
const CountdownCard = ({ label, unit }: { label: ReactNode; unit: number }) => (
<div className="flex w-11 flex-1 flex-col items-center rounded-lg border border-smoke-75 bg-smoke-50 py-1 px-1 text-black drop-shadow dark:border-slate-400 dark:bg-slate-700 dark:text-white sm:px-1.5">
<div className="text-sm sm:text-xl">{unit}</div>
<div className="text-xs font-medium text-grey-500 dark:text-slate-200">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import TooltipLabel from 'components/TooltipLabel'
import { durationOptions } from 'components/inputs/DurationInput'
import { JuiceSwitch } from 'components/inputs/JuiceSwitch'
import { CYCLE_EXPLANATION } from 'components/strings'
import DurationInputAndSelect from 'components/v2v3/shared/FundingCycleConfigurationDrawers/FundingDrawer/FundingForm/DurationInputAndSelect'
import { useState } from 'react'
import { useEditCycleFormContext } from '../EditCycleFormContext'
import DurationInputAndSelect from './DurationInputAndSelect'

export function DurationFields() {
const { editCycleForm, initialFormData } = useEditCycleFormContext()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { useNftCollectionMetadata } from 'hooks/JB721Delegate/useNftCollectionMe
import { useReconfigureNftCollectionMetadata } from 'hooks/v2v3/transactor/useReconfigureNftCollectionMetadata'
import { NftCollectionMetadata } from 'models/nftRewards'
import { useCallback, useContext, useEffect, useMemo, useState } from 'react'
import { NftCollectionDetailsFormItems } from '../../../../../shared/FundingCycleConfigurationDrawers/NftDrawer/shared/NftCollectionDetailsFormItems'
import { MarketplaceFormFields } from '../../../../../shared/FundingCycleConfigurationDrawers/NftDrawer/shared/formFields'
import { NftCollectionDetailsFormItems } from './NftCollectionDetailsFormItems'
import { MarketplaceFormFields } from './formFields'

const useCollectionDetailsForm = () => {
const [form] = useForm<MarketplaceFormFields>()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useForm } from 'antd/lib/form/Form'
import { MarketplaceFormFields } from 'components/v2v3/shared/FundingCycleConfigurationDrawers/NftDrawer/shared/formFields'
import { MarketplaceFormFields } from 'components/v2v3/V2V3Project/V2V3ProjectSettings/pages/EditNftsPage/UpdateNftsPage/formFields'
import { NftRewardsContext } from 'contexts/NftRewards/NftRewardsContext'
import { NftRewardTier } from 'models/nftRewards'
import { useContext, useEffect, useState } from 'react'
Expand Down

This file was deleted.

Loading

0 comments on commit 0913e4d

Please sign in to comment.