diff --git a/.changeset/bumpy-webs-crash.md b/.changeset/bumpy-webs-crash.md new file mode 100644 index 00000000000..2d479acfa21 --- /dev/null +++ b/.changeset/bumpy-webs-crash.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +UI cleanup for multistep swaps in PayEmbed diff --git a/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat/OnRampScreen.tsx b/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat/OnRampScreen.tsx index db4ffd6ad76..b7f29c37b99 100644 --- a/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat/OnRampScreen.tsx +++ b/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat/OnRampScreen.tsx @@ -90,9 +90,6 @@ export function OnRampScreen(props: { isAutoMode, }); const firstStepChainId = state.steps[0]?.step.token.chainId; - const currentStepIndex = state.steps.findIndex( - (step) => step.status === "pending" || step.status === "actionRequired", - ); return ( @@ -131,9 +128,7 @@ export function OnRampScreen(props: { index={index} /> - {index < state.steps.length - 1 && ( - - )} + {index < state.steps.length - 1 && } ))} diff --git a/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/StepConnector.tsx b/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/StepConnector.tsx index 412592c700d..16b1a2601c1 100644 --- a/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/StepConnector.tsx +++ b/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/StepConnector.tsx @@ -1,9 +1,8 @@ +import { ChevronDownIcon } from "@radix-ui/react-icons"; import { useCustomTheme } from "../../../../../../core/design-system/CustomThemeProvider.js"; import { Container } from "../../../../components/basic.js"; -export function StepConnectorArrow(props: { - active: boolean; -}) { +export function StepConnectorArrow() { const theme = useCustomTheme(); return ( - - - - + + ); } diff --git a/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/SwapSummary.tsx b/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/SwapSummary.tsx index 601db6bc8f7..dfa4b3fb9eb 100644 --- a/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/SwapSummary.tsx +++ b/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/SwapSummary.tsx @@ -64,7 +64,7 @@ export function SwapSummary(props: { /> {/* Connector Icon */} - + {/* Buy */}