Skip to content

Commit dcd7b08

Browse files
TransactionPayment component
1 parent c6112fe commit dcd7b08

File tree

7 files changed

+801
-5
lines changed

7 files changed

+801
-5
lines changed

packages/thirdweb/src/react/web/ui/Bridge/BridgeOrchestrator.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { ErrorBanner } from "./ErrorBanner.js";
2121
import { FundWallet } from "./FundWallet.js";
2222
import { QuoteLoader } from "./QuoteLoader.js";
2323
import { StepRunner } from "./StepRunner.js";
24+
import { TransactionPayment } from "./TransactionPayment.js";
2425
import { PaymentDetails } from "./payment-details/PaymentDetails.js";
2526
import { PaymentSelection } from "./payment-selection/PaymentSelection.js";
2627
import { SuccessScreen } from "./payment-success/SuccessScreen.js";
@@ -217,6 +218,15 @@ export function BridgeOrchestrator({
217218
/>
218219
)}
219220

221+
{state.value === "init" && uiOptions.mode === "transaction" && (
222+
<TransactionPayment
223+
transaction={uiOptions.transaction}
224+
client={client}
225+
onContinue={handleRequirementsResolved}
226+
connectOptions={connectOptions}
227+
/>
228+
)}
229+
220230
{state.value === "methodSelection" &&
221231
state.context.destinationToken &&
222232
state.context.destinationAmount && (

packages/thirdweb/src/react/web/ui/Bridge/DirectPayment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export function DirectPayment({
266266
<Spacer y="md" />
267267

268268
<PoweredByThirdweb />
269-
<Spacer y="md" />
269+
<Spacer y="lg" />
270270
</Container>
271271
</Container>
272272
</Container>

packages/thirdweb/src/react/web/ui/Bridge/FundWallet.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ export function FundWallet({
115115
};
116116

117117
return (
118-
<Container flex="column" p="lg">
118+
<Container flex="column" px="lg">
119+
<Spacer y="lg" />
119120
{/* Header */}
120-
<ModalHeader title="Top up your wallet" />
121+
<ModalHeader title="Top up your wallet" leftAligned />
121122

122123
<Spacer y="xl" />
123124

@@ -337,9 +338,10 @@ export function FundWallet({
337338
/>
338339
)}
339340

340-
<Spacer y="lg" />
341+
<Spacer y="md" />
341342

342343
<PoweredByThirdweb />
344+
<Spacer y="lg" />
343345
</Container>
344346
);
345347
}

0 commit comments

Comments
 (0)