@@ -2,6 +2,7 @@ import { version } from 'package.json'
2
2
import { useCallback , useContext , useEffect , useMemo } from 'react'
3
3
import { useTranslation } from 'react-i18next'
4
4
import { Platform , ScrollView , StyleSheet , View } from 'react-native'
5
+ import Config from 'react-native-config'
5
6
6
7
import { AppTouchable , Typography } from 'components/index'
7
8
import { getWalletSetting } from 'core/config'
@@ -152,60 +153,39 @@ export const SettingsScreen = ({
152
153
</ Typography >
153
154
</ AppTouchable >
154
155
< View style = { styles . bottomView } >
155
- < AppTouchable
156
- width = { '100%' }
157
- accessibilityLabel = "version"
158
- style = { styles . footerItem }
159
- onPress = { goToWalletBackup } >
160
- < Typography type = { 'body1' } color = { sharedColors . labelLight } >
161
- { t ( 'settings_screen_version' ) } { version }
156
+ < View style = { styles . settingsItem } >
157
+ < Typography type = { 'h4' } color = { sharedColors . labelLight } >
158
+ { t ( 'settings_screen_version' ) } { version } -
159
+ { Config . USE_RELAY ? 'relay' : 'eoa' }
162
160
</ Typography >
163
- </ AppTouchable >
161
+ </ View >
164
162
165
- < AppTouchable
166
- width = { '100%' }
167
- accessibilityLabel = "Smart Wallet Factory"
168
- style = { styles . footerItem }
169
- onPress = { goToWalletBackup } >
170
- < >
171
- < Typography type = { 'h4' } color = { sharedColors . labelLight } >
172
- { t ( 'settings_screen_smart_wallet_factory' ) }
173
- </ Typography >
174
- < Typography type = { 'h5' } color = { sharedColors . labelLight } >
175
- { smartWalletFactoryAddress }
176
- </ Typography >
177
- </ >
178
- </ AppTouchable >
163
+ < View style = { styles . settingsItem } >
164
+ < Typography type = { 'h4' } color = { sharedColors . labelLight } >
165
+ { t ( 'settings_screen_smart_wallet_factory' ) }
166
+ </ Typography >
167
+ < Typography type = { 'h5' } color = { sharedColors . labelLight } >
168
+ { smartWalletFactoryAddress }
169
+ </ Typography >
170
+ </ View >
179
171
180
- < AppTouchable
181
- width = { '100%' }
182
- accessibilityLabel = "security"
183
- style = { styles . footerItem }
184
- onPress = { goToWalletBackup } >
185
- < >
186
- < Typography type = { 'h4' } color = { sharedColors . labelLight } >
187
- { t ( 'settings_screen_rpc_url' ) }
188
- </ Typography >
189
- < Typography type = { 'h5' } color = { sharedColors . labelLight } >
190
- { rpcUrl }
191
- </ Typography >
192
- </ >
193
- </ AppTouchable >
172
+ < View style = { styles . settingsItem } >
173
+ < Typography type = { 'h4' } color = { sharedColors . labelLight } >
174
+ { t ( 'settings_screen_rpc_url' ) }
175
+ </ Typography >
176
+ < Typography type = { 'h5' } color = { sharedColors . labelLight } >
177
+ { rpcUrl }
178
+ </ Typography >
179
+ </ View >
194
180
195
- < AppTouchable
196
- width = { '100%' }
197
- accessibilityLabel = "Backend URL"
198
- style = { styles . footerItem }
199
- onPress = { goToWalletBackup } >
200
- < >
201
- < Typography type = { 'h4' } color = { sharedColors . labelLight } >
202
- { t ( 'settings_screen_backend_url' ) }
203
- </ Typography >
204
- < Typography type = { 'h5' } color = { sharedColors . labelLight } >
205
- { walletServiceUrl }
206
- </ Typography >
207
- </ >
208
- </ AppTouchable >
181
+ < View style = { styles . settingsItem } >
182
+ < Typography type = { 'h4' } color = { sharedColors . labelLight } >
183
+ { t ( 'settings_screen_backend_url' ) }
184
+ </ Typography >
185
+ < Typography type = { 'h5' } color = { sharedColors . labelLight } >
186
+ { walletServiceUrl }
187
+ </ Typography >
188
+ </ View >
209
189
</ View >
210
190
</ ScrollView >
211
191
)
0 commit comments