File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
packages/thirdweb/src/react/web/ui/ConnectWallet Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -183,17 +183,20 @@ export const ConnectedWalletDetails: React.FC<{
183
183
const isNetworkMismatch =
184
184
props . chain && walletChain && walletChain . id !== props . chain . id ;
185
185
186
+ // Note: Must wrap the `detailsButton.render` and `SwitchNetworkButton` in a fragment to avoid warning from radix-ui
186
187
const trigger = props . detailsButton ?. render ? (
187
- < div >
188
+ < >
188
189
< props . detailsButton . render />
189
- </ div >
190
+ </ >
190
191
) : props . chain && isNetworkMismatch ? (
191
- < SwitchNetworkButton
192
- style = { props . switchButton ?. style }
193
- className = { props . switchButton ?. className }
194
- switchNetworkBtnTitle = { props . switchButton ?. label }
195
- targetChain = { props . chain }
196
- />
192
+ < >
193
+ < SwitchNetworkButton
194
+ style = { props . switchButton ?. style }
195
+ className = { props . switchButton ?. className }
196
+ switchNetworkBtnTitle = { props . switchButton ?. label }
197
+ targetChain = { props . chain }
198
+ />
199
+ </ >
197
200
) : (
198
201
< WalletInfoButton
199
202
type = "button"
You can’t perform that action at this time.
0 commit comments