11import React , { useState , useEffect } from 'react' ;
2- import { Alert } from 'react-native' ;
2+ import { Alert , ScrollView } from 'react-native' ;
33import { useWalletConnection } from '../../hooks/useWalletConnection' ;
44import { useContractIntegration } from '../../hooks/useContractIntegration' ;
55import { useSDK } from '@metamask/sdk-react' ;
@@ -134,8 +134,9 @@ export const ChainSelectionScreen = () => {
134134
135135 return (
136136 < FxSafeAreaBox flex = { 1 } edges = { [ 'top' ] } >
137- < FxBox paddingHorizontal = "20" paddingVertical = "12" >
138- < FxHeader title = "Chain Selection" />
137+ < ScrollView contentContainerStyle = { { flexGrow : 1 } } showsVerticalScrollIndicator = { true } >
138+ < FxBox paddingHorizontal = "20" paddingVertical = "12" >
139+ < FxHeader title = "Chain Selection" />
139140
140141 { /* Wallet Connect/Disconnect Button */ }
141142 < FxBox marginTop = "16" marginBottom = "8" flexDirection = "row" alignItems = "center" >
@@ -153,6 +154,10 @@ export const ChainSelectionScreen = () => {
153154 { account }
154155 </ FxText >
155156 </ >
157+ ) : manualSignatureWalletAddress ? (
158+ < FxText variant = "bodyXSRegular" color = "content2" >
159+ Manual wallet stored
160+ </ FxText >
156161 ) : (
157162 < FxButton
158163 onPress = { connectWallet }
@@ -175,7 +180,7 @@ export const ChainSelectionScreen = () => {
175180 < FxText variant = "bodyMediumRegular" >
176181 Wallet Account
177182 </ FxText >
178- { ! connected && (
183+ { ! account && (
179184 < FxButton
180185 variant = "inverted"
181186 onPress = { ( ) => setIsEditingWalletAddress ( ! isEditingWalletAddress ) }
@@ -186,7 +191,7 @@ export const ChainSelectionScreen = () => {
186191 </ FxBox >
187192
188193 { /* Display Mode - MetaMask Connected (Read-only) */ }
189- { connected && account && (
194+ { account && (
190195 < FxBox >
191196 < FxText variant = "bodyXSRegular" color = "content2" marginBottom = "4" >
192197 Connected via MetaMask
@@ -198,7 +203,7 @@ export const ChainSelectionScreen = () => {
198203 ) }
199204
200205 { /* Display Mode - Manual Signature Stored (Read-only) */ }
201- { ! connected && manualSignatureWalletAddress && ! isEditingWalletAddress && (
206+ { ! account && manualSignatureWalletAddress && ! isEditingWalletAddress && (
202207 < FxBox >
203208 < FxText variant = "bodyXSRegular" color = "content2" marginBottom = "4" >
204209 Manual Signature Wallet
@@ -210,7 +215,7 @@ export const ChainSelectionScreen = () => {
210215 ) }
211216
212217 { /* Display Mode - No Account */ }
213- { ! connected && ! manualSignatureWalletAddress && ! isEditingWalletAddress && (
218+ { ! account && ! manualSignatureWalletAddress && ! isEditingWalletAddress && (
214219 < FxBox >
215220 < FxText variant = "bodyXSRegular" color = "content2" >
216221 No wallet connected. Connect MetaMask or enter a wallet address manually.
@@ -219,7 +224,7 @@ export const ChainSelectionScreen = () => {
219224 ) }
220225
221226 { /* Edit Mode - Manual Wallet Address Input */ }
222- { ! connected && isEditingWalletAddress && (
227+ { ! account && isEditingWalletAddress && (
223228 < FxBox >
224229 < FxTextInput
225230 placeholder = "0x..."
@@ -398,7 +403,8 @@ export const ChainSelectionScreen = () => {
398403 </ FxText >
399404 </ FxBox >
400405 </ FxBox >
401- </ FxBox >
406+ </ FxBox >
407+ </ ScrollView >
402408 </ FxSafeAreaBox >
403409 ) ;
404410} ;
0 commit comments