From 909085635492ab31ce2253991ac68246807da8d3 Mon Sep 17 00:00:00 2001 From: Jessica Xiao <15721063+essj@users.noreply.github.com> Date: Tue, 10 Jun 2025 07:23:32 +1200 Subject: [PATCH 1/5] chore: Merge `develop` into `staging` --- .../deposit/sections/content-section.tsx | 91 +++++++++++-------- .../withdraw/sections/content-section.tsx | 88 ++++++++++-------- apps/flame-defi/app/globals.css | 11 +-- packages/ui/src/components/atoms/input.tsx | 2 +- .../molecules/card/card-figure-input.tsx | 2 +- 5 files changed, 112 insertions(+), 82 deletions(-) diff --git a/apps/flame-defi/app/bridge/modules/deposit/sections/content-section.tsx b/apps/flame-defi/app/bridge/modules/deposit/sections/content-section.tsx index 3119b431..9ce7d563 100644 --- a/apps/flame-defi/app/bridge/modules/deposit/sections/content-section.tsx +++ b/apps/flame-defi/app/bridge/modules/deposit/sections/content-section.tsx @@ -7,7 +7,14 @@ import { isAddress } from "viem"; import { useSwitchChain } from "wagmi"; import { ChainType, EvmCurrency } from "@repo/flame-types"; -import { AnimatedArrowSpacer, Card } from "@repo/ui/components"; +import { + AnimatedArrowSpacer, + Button, + Card, + CardContent, + Input, + Skeleton, +} from "@repo/ui/components"; import { ArrowDownIcon, EditIcon, WalletIcon } from "@repo/ui/icons"; import { shortenAddress } from "@repo/ui/utils"; import { AmountInput } from "bridge/components/amount-input"; @@ -341,21 +348,24 @@ export const ContentSection = () => { {/* Source wallet info - unified display regardless of chain type */} {sourceConnection.address && ( -
+
Address: {shortenAddress(sourceConnection.address)}
- Balance: {isLoadingSourceBalance && "Loading..."}
+
Address: {shortenAddress(destinationConnection.address)}
-
+
- Balance: {isLoadingDestinationBalance && "Loading..."} +
Address: {shortenAddress(recipientAddressOverride)}
-
+
- Connect via wallet to show balance +
+ Connect wallet to show balance.
)} -
+
Address: {shortenAddress(sourceConnection.address)}
- Balance: {isLoadingSourceBalance && "Loading..."}
+
Address: {shortenAddress(destinationConnection.address)}
-
+
- Balance: {isLoadingDestinationBalance && "Loading..."} +
Address: {shortenAddress(recipientAddressOverride)}
-
+
- Connect via wallet to show balance +
+ Connect wallet to show balance.
-