Skip to content

Commit

Permalink
Revert "feat: fix payouts not displaying in sep, add footer to v4 pro…
Browse files Browse the repository at this point in the history
…ject page"

This reverts commit 4dcef09.
  • Loading branch information
johnnyd-eth committed Sep 25, 2024
1 parent 4dcef09 commit eed14b4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
6 changes: 1 addition & 5 deletions src/constants/currency.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type CurrencyName = 'ETH' | 'USD' | 'SepETH'
export type CurrencyName = 'ETH' | 'USD'
type CurrencySymbol = 'Ξ' | 'US$'
export type CurrencyMetadata = {
name: CurrencyName
Expand All @@ -10,10 +10,6 @@ export const CURRENCY_METADATA: Record<CurrencyName, CurrencyMetadata> = {
name: 'ETH',
symbol: 'Ξ',
},
SepETH: {
name: 'SepETH',
symbol: 'Ξ',
},
USD: {
name: 'USD',
symbol: 'US$',
Expand Down
3 changes: 1 addition & 2 deletions src/packages/v4/models/v4CurrencyOption.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// same as v2v3 for now (@todo: make V4 specific)
export type V4CurrencyETH = 1
export type V4CurrencyUSD = 2
export type V4CurrencySEP = 61166
export type V4CurrencyOption = V4CurrencyETH | V4CurrencyUSD | V4CurrencySEP
export type V4CurrencyOption = V4CurrencyETH | V4CurrencyUSD
5 changes: 1 addition & 4 deletions src/packages/v4/utils/currency.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import { CURRENCY_METADATA, CurrencyMetadata, CurrencyName } from "constants/currency"
import { V4CurrencyETH, V4CurrencyOption, V4CurrencySEP, V4CurrencyUSD } from "../models/v4CurrencyOption"
import { V4CurrencyETH, V4CurrencyOption, V4CurrencyUSD } from "../models/v4CurrencyOption"

export const V4_CURRENCY_ETH: V4CurrencyETH = 1
export const V4_CURRENCY_USD: V4CurrencyUSD = 2
export const V4_CURRENCY_SEP: V4CurrencySEP = 61166


export const V4_CURRENCY_METADATA: Record<
V4CurrencyOption,
CurrencyMetadata
> = {
[V4_CURRENCY_ETH]: CURRENCY_METADATA.ETH,
[V4_CURRENCY_USD]: CURRENCY_METADATA.USD,
[V4_CURRENCY_SEP]: CURRENCY_METADATA.SepETH,
}

export const V4CurrencyName = (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Footer } from 'components/Footer/Footer'
import { CoverPhoto } from 'components/Project/ProjectHeader/CoverPhoto'
import { SuccessPayView } from 'packages/v4/components/ProjectDashboard/components/SuccessPayView/SuccessPayView'
import { useProjectDispatch } from 'packages/v4/components/ProjectDashboard/redux/hooks'
Expand Down Expand Up @@ -28,7 +27,7 @@ export function V4ProjectDashboard() {
<div className="relative w-full">
<CoverPhoto />
</div>
<div className="flex w-full justify-center md:px-6 pb-48">
<div className="flex w-full justify-center md:px-6">
<div className="flex w-full max-w-6xl flex-col">
<V4ProjectHeader className="mt-12 px-4 md:mt-4 md:px-0" />
<div
Expand All @@ -52,7 +51,6 @@ export function V4ProjectDashboard() {
</div>
</div>
</div>
<Footer />
</>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function V4DistributePayoutsModal({
NATIVE_TOKEN,
parseUnits(distributionAmount, NATIVE_TOKEN_DECIMALS),
BigInt(payoutLimitAmountCurrency),
0n,
0n, // TODO?
] as const

try {
Expand Down

0 comments on commit eed14b4

Please sign in to comment.