diff --git a/.changeset/eager-loops-fold.md b/.changeset/eager-loops-fold.md new file mode 100644 index 00000000000..49e7a7eb359 --- /dev/null +++ b/.changeset/eager-loops-fold.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +Allows using the checkout widget without a wallet connected diff --git a/packages/thirdweb/src/react/web/ui/Bridge/BridgeOrchestrator.tsx b/packages/thirdweb/src/react/web/ui/Bridge/BridgeOrchestrator.tsx index 9346ab31bad..5021e7663df 100644 --- a/packages/thirdweb/src/react/web/ui/Bridge/BridgeOrchestrator.tsx +++ b/packages/thirdweb/src/react/web/ui/Bridge/BridgeOrchestrator.tsx @@ -277,7 +277,6 @@ export function BridgeOrchestrator({ {state.value === "init" && uiOptions.mode === "direct_payment" && ( + + Something went wrong. + + + + ); + } + return ( void; - /** - * Connect options for wallet connection - */ - connectOptions?: PayEmbedConnectOptions; - /** * Whether to show thirdweb branding in the widget. * @default true @@ -50,12 +41,9 @@ export function DirectPayment({ uiOptions, client, onContinue, - connectOptions, showThirdwebBranding = true, }: DirectPaymentProps) { - const activeAccount = useActiveAccount(); const chain = defineChain(uiOptions.paymentInfo.token.chainId); - const theme = useCustomTheme(); const handleContinue = () => { onContinue( uiOptions.paymentInfo.amount, @@ -188,23 +176,9 @@ export function DirectPayment({ {/* Action button */} - {activeAccount ? ( - - ) : ( - - )} + {showThirdwebBranding ? (
diff --git a/packages/thirdweb/src/react/web/ui/Bridge/payment-selection/WalletFiatSelection.tsx b/packages/thirdweb/src/react/web/ui/Bridge/payment-selection/WalletFiatSelection.tsx index b75dfcf92e4..8afa48c1359 100644 --- a/packages/thirdweb/src/react/web/ui/Bridge/payment-selection/WalletFiatSelection.tsx +++ b/packages/thirdweb/src/react/web/ui/Bridge/payment-selection/WalletFiatSelection.tsx @@ -121,10 +121,10 @@ export function WalletFiatSelection({ - Connect Another Wallet + Connect a Wallet - Use a different wallet to pay + Pay with any web3 wallet @@ -169,7 +169,7 @@ export function WalletFiatSelection({ Pay with Card - Buy crypto and bridge in one step + Onramp and pay in one step