File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
packages/react-native/src/evm/wallets/wallets/wallet-connect Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @thirdweb-dev/react-native " : patch
3
+ ---
4
+
5
+ Hide WC modal back button when only WC is defined as a supportedWallet
Original file line number Diff line number Diff line change @@ -41,8 +41,9 @@ const MODAL_HEIGHT = Dimensions.get("window").height * 0.5;
41
41
export function WalletConnectUI ( {
42
42
connected,
43
43
walletConfig,
44
- goBack,
45
44
projectId,
45
+ goBack,
46
+ supportedWallets,
46
47
} : ConnectUIProps < WalletConnect > & { projectId : string } ) {
47
48
const l = useLocale ( ) ;
48
49
const theme = useGlobalTheme ( ) ;
@@ -163,7 +164,7 @@ export function WalletConnectUI({
163
164
style = { [ styles . modal , { backgroundColor : theme . colors . background } ] }
164
165
>
165
166
< ModalHeaderTextClose
166
- onBackPress = { goBack }
167
+ onBackPress = { supportedWallets . length === 1 ? undefined : goBack }
167
168
headerText = "WalletConnect"
168
169
onClose = { onClosePress }
169
170
paddingHorizontal = "md"
You can’t perform that action at this time.
0 commit comments