diff --git a/src/app/profile/[address]/page.tsx b/src/app/profile/[address]/page.tsx index 175ac5b1..c8498020 100644 --- a/src/app/profile/[address]/page.tsx +++ b/src/app/profile/[address]/page.tsx @@ -1506,8 +1506,8 @@ function PortfolioTab({ address, isOwnProfile }: { address: string; isOwnProfile )} {isOwnProfile && hasDonationsGiven && ( -
- +
+
Given {formatPrice(formatUnits(totalDonated, 18))} {RESERVE_LABEL} @@ -1516,44 +1516,38 @@ function PortfolioTab({ address, isOwnProfile }: { address: string; isOwnProfile (≈ {formatUsdValue(Number(formatUnits(totalDonated, 18)) * plotUsd)}) )} {donationTotalCount} {donationTotalCount === 1 ? "donation" : "donations"} - - -
+
{donationsGiven.map((d) => ( -
-
- + + Story #{d.storyline_id} + + + {formatPrice(formatUnits(BigInt(d.amount), 18))} {RESERVE_LABEL} + + {plotUsd != null && ( + (≈ {formatUsdValue(Number(formatUnits(BigInt(d.amount), 18)) * plotUsd)}) + )} + {d.block_timestamp && ( + + )} + {d.tx_hash && ( + - Story #{d.storyline_id} - - {d.block_timestamp && ( - - )} -
-
- - {formatPrice(formatUnits(BigInt(d.amount), 18))} {RESERVE_LABEL} - - {plotUsd != null && ( - (≈ {formatUsdValue(Number(formatUnits(BigInt(d.amount), 18)) * plotUsd)}) - )} - {d.tx_hash && ( - - ↗ - - )} -
+ ↗ + + )}
))} {donHasNext && ( @@ -1566,7 +1560,7 @@ function PortfolioTab({ address, isOwnProfile }: { address: string; isOwnProfile )}
-
+ )} )} @@ -1635,14 +1629,12 @@ function PortfolioTradingHistory({ address, plotUsd }: { address: string; plotUs if (trades.length === 0) return null; return ( -
- +
+
Trades {totalCount} {totalCount === 1 ? "trade" : "trades"} - - -
+
{trades.map((t) => { @@ -1652,49 +1644,45 @@ function PortfolioTradingHistory({ address, plotUsd }: { address: string; plotUs return (
-
- - {isBuy ? "Buy" : "Sell"} + + {isBuy ? "Buy" : "Sell"} + + + {title || `Story #${t.storyline_id}`} + + + {formatPrice(t.reserve_amount)} {RESERVE_LABEL} + + {plotUsd && ( + + (≈ {formatUsdValue(t.reserve_amount * plotUsd)}) - 0 && ( + {formatSupply(tokenCount)} tokens + )} + {t.block_timestamp && ( + + )} + {t.tx_hash && ( + - {title || `Story #${t.storyline_id}`} - - {tokenCount > 0 && ( - {formatSupply(tokenCount)} tokens - )} - {t.block_timestamp && ( - - )} -
-
- - {formatPrice(t.reserve_amount)} {RESERVE_LABEL} - - {plotUsd && ( - - (≈ {formatUsdValue(t.reserve_amount * plotUsd)}) - - )} - {t.tx_hash && ( - - ↗ - - )} -
+ ↗ + + )}
); })} @@ -1711,7 +1699,7 @@ function PortfolioTradingHistory({ address, plotUsd }: { address: string; plotUs
)} -
+ ); }