Skip to content

Commit 9cf8688

Browse files
committed
better switch ux, swap label
1 parent 8f75d50 commit 9cf8688

File tree

1 file changed

+5
-1
lines changed
  • packages/thirdweb/src/react/web/ui/Bridge/swap-widget

1 file changed

+5
-1
lines changed

packages/thirdweb/src/react/web/ui/Bridge/swap-widget/swap-ui.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,10 @@ function SwapUIBase(
307307
const temp = props.sellToken;
308308
props.setSellToken(props.buyToken);
309309
props.setBuyToken(temp);
310+
props.setAmountSelection({
311+
type: props.amountSelection.type === "buy" ? "sell" : "buy",
312+
amount: props.amountSelection.amount,
313+
});
310314
}}
311315
/>
312316

@@ -360,7 +364,7 @@ function SwapUIBase(
360364
<ConnectButton
361365
client={props.client}
362366
connectButton={{
363-
label: "Connect Wallet",
367+
label: "Swap",
364368
style: {
365369
width: "100%",
366370
borderRadius: radius.lg,

0 commit comments

Comments
 (0)