@@ -5,12 +5,13 @@ import * as React from 'react'
5
5
import { ScrollView , TouchableOpacity , View } from 'react-native'
6
6
import FastImage from 'react-native-fast-image'
7
7
import AntDesignIcon from 'react-native-vector-icons/AntDesign'
8
+ import { sprintf } from 'sprintf-js'
8
9
9
10
import { showBackupForTransferModal } from '../../actions/BackupModalActions'
10
11
import { SPECIAL_CURRENCY_INFO } from '../../constants/WalletAndCurrencyConstants'
11
12
import { useAsyncEffect } from '../../hooks/useAsyncEffect'
12
13
import { useMount } from '../../hooks/useMount'
13
- import { useWalletConnect } from '../../hooks/useWalletConnect'
14
+ import { useWalletConnect , walletConnectClient } from '../../hooks/useWalletConnect'
14
15
import { lstrings } from '../../locales/strings'
15
16
import { useSelector } from '../../types/reactRedux'
16
17
import { EdgeSceneProps } from '../../types/routerTypes'
@@ -102,6 +103,11 @@ export const WcConnectionsScene = (props: Props) => {
102
103
spinner = { connecting }
103
104
/>
104
105
< EdgeText style = { styles . listTitle } > { lstrings . wc_walletconnect_active_connections } </ EdgeText >
106
+ { walletConnectClient . client != null ? null : (
107
+ < EdgeText style = { { ...styles . listTitle , color : theme . dangerText } } >
108
+ { sprintf ( lstrings . wc_dapp_disconnected , lstrings . wc_walletconnect_title ) }
109
+ </ EdgeText >
110
+ ) }
105
111
< View style = { styles . list } >
106
112
{ connections . map ( ( dAppConnection : WcConnectionInfo , index ) => (
107
113
< TouchableOpacity key = { index } style = { styles . listRow } onPress = { ( ) => handleActiveConnectionPress ( dAppConnection ) } >
0 commit comments