From 5c1daba4e736c375170bebbcf684bc48e2bc99c1 Mon Sep 17 00:00:00 2001 From: Hamid Roohi Date: Thu, 29 Aug 2024 14:51:23 +0330 Subject: [PATCH] fix(app box): fix app box styles --- src/components/appBox.tsx | 49 ++++++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/src/components/appBox.tsx b/src/components/appBox.tsx index 53e9a93..acdc701 100644 --- a/src/components/appBox.tsx +++ b/src/components/appBox.tsx @@ -15,8 +15,11 @@ import { useAccount, useNetwork, useSwitchNetwork } from "wagmi"; import notification from "@/ui/notification"; import { supportedTokenList } from "@/config/tokens"; import { useTrail, animated, useSpring } from "@react-spring/web"; +import WalletSelectionModal from "./walletSelectionModal"; export default function AppBox() { + const [connectModal, setConnectModal] = useState(false); + const { defaultSourceChainOptions, defaultSourceAssetOptions } = parseCross(); const [selectedAsset, setSelectedAsset] = useState(supportedTokenList[0]); const [allowedChain, setAllowedChain] = useState([]); @@ -374,25 +377,37 @@ export default function AppBox() { -
+

Sender

- + {sender ? ( + + ) : ( + + )} -
+

Recipient

@@ -400,12 +415,12 @@ export default function AppBox() { type="text" value={recipient?.address} onChange={handleRecipientAddressChange} - placeholder="Please enter the recipient address" + placeholder="Enter address" className="h-[24px] text-ellipsis whitespace-nowrap border-none bg-transparent text-[14px] font-[700] leading-[24px] outline-none" /> -
+

Amount

@@ -414,7 +429,7 @@ export default function AppBox() { type="text" value={transferAmount?.input} onChange={handleInputChange} - placeholder="Please enter the amount" + placeholder="0" className="h-[24px] flex-grow text-ellipsis whitespace-nowrap border-none bg-transparent text-[14px] font-[700] leading-[24px] outline-none" />