@@ -102,17 +102,17 @@ const preparedQuote = await Bridge.Buy.prepare({
102102 </TabsContent >
103103
104104 <TabsContent value = " react" >
105- The quickest way to setup Bridge in your React app is with the [ ` BuyWidget ` ] ( /references/typescript/v5/widgets/BuyWidget ) component.
106-
105+ The quickest way to setup Bridge in your React app is with the [ ` SwapWidget ` ] ( /references/typescript/v5/widgets/SwapWidget ) component.
106+
107107 ### Live Playground
108108
109109<ArticleIconCard
110- title = " Payment Widgets Playground"
111- description = " Try out the Payment Widgets in our live playground"
110+ title = " Swap Widget Playground"
111+ description = " Try out the Swap Widget in our live playground"
112112 icon = { ReactIcon }
113- href = " https://playground.thirdweb.com/connect/pay/transactions "
113+ href = " https://playground.thirdweb.com/bridge/swap-widget "
114114/>
115-
115+
116116 ### Installation
117117
118118 Install the thirdweb SDK in your React project:
@@ -127,7 +127,7 @@ const preparedQuote = await Bridge.Buy.prepare({
127127
128128 ### Create a Client
129129
130- First, create a client file (e.g., ` thirdwebClient.ts ` ) for reuse throughout your app:
130+ First, create a client file for reuse throughout your app:
131131
132132 ``` typescript
133133 // thirdwebClient.ts
@@ -140,7 +140,7 @@ const preparedQuote = await Bridge.Buy.prepare({
140140
141141 ### Setup the Provider
142142
143- Wrap your application with the ThirdwebProvider:
143+ Wrap your application with the ` ThirdwebProvider `
144144
145145 ``` tsx
146146 // app.tsx / _app.tsx
@@ -155,21 +155,17 @@ const preparedQuote = await Bridge.Buy.prepare({
155155 }
156156 ```
157157
158- ### Buy Widget
158+ ### Add Swap Widget
159159
160- Use the BuyWidget to let users purchase tokens:
160+ Use the SwapWidget to let users swap tokens
161161
162162 ``` tsx
163- import { BuyWidget } from " thirdweb/react" ;
164- import { base } from " thirdweb/chains" ;
163+ import { SwapWidget } from " thirdweb/react" ;
165164
166- function PaymentComponent () {
165+ function Example () {
167166 return (
168- <BuyWidget
167+ <SwapWidget
169168 client = { client }
170- chain = { base }
171- amount = " 10" // 10 USDC
172- tokenAddress = " 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
173169 />
174170 );
175171 }
0 commit comments