From f41dca375da1903a2fb524feedf3c0e6a1002091 Mon Sep 17 00:00:00 2001 From: dorianvp Date: Mon, 13 Apr 2026 16:47:14 +0100 Subject: [PATCH 1/5] fix: correct network --- app/LoadingApp/components/ConnectIndexer.tsx | 2 +- app/LoadingApp/components/SelectNetwork.tsx | 24 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/app/LoadingApp/components/ConnectIndexer.tsx b/app/LoadingApp/components/ConnectIndexer.tsx index c3882f60c..3c880b4af 100644 --- a/app/LoadingApp/components/ConnectIndexer.tsx +++ b/app/LoadingApp/components/ConnectIndexer.tsx @@ -317,7 +317,7 @@ const ConnectIndexer: React.FunctionComponent = ({ }} > = ({ fromSettings, goConnectIndexer, goAvailableServers, + setIndexerServer, }) => { const context = useContext(ContextAppLoading); const { @@ -54,6 +56,16 @@ const SelectNetwork: React.FunctionComponent = ({ const screenName = ScreenEnum.Servers; const [kbOpen, setKbOpen] = useState(false); + const [indexerServerUriLocal, setIndexerServerUriLocal] = useState( + indexerServerContext.uri ? indexerServerContext.uri : serverUris()[0].uri, + ); + + const [indexerServerChainNameLocal, setIndexerServerChainNameLocal] = + useState( + indexerServerContext.uri + ? indexerServerContext.chainName + : serverUris()[0].chainName, + ); const insets = useSafeAreaInsets(); @@ -231,6 +243,11 @@ const SelectNetwork: React.FunctionComponent = ({ style={{ width: '100%' }} disabled={actionButtonsDisabled} onPress={() => { + setIndexerServerChainNameLocal(ChainNameEnum.testChainName); + setIndexerServer( + indexerServerUriLocal, + ChainNameEnum.testChainName, + ); goConnectIndexer(); }} > @@ -323,6 +340,13 @@ const SelectNetwork: React.FunctionComponent = ({ hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }} disabled={actionButtonsDisabled} onPress={() => { + setIndexerServerChainNameLocal( + ChainNameEnum.regtestChainName, + ); + setIndexerServer( + indexerServerUriLocal, + ChainNameEnum.regtestChainName, + ); goConnectIndexer(); }} > From 68a8877914fd1203ad9e0cae99ed32941c03596d Mon Sep 17 00:00:00 2001 From: dorianvp Date: Mon, 13 Apr 2026 16:47:30 +0100 Subject: [PATCH 2/5] fix lint errors --- app/LoadingApp/components/SelectNetwork.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/LoadingApp/components/SelectNetwork.tsx b/app/LoadingApp/components/SelectNetwork.tsx index 258edf29d..c0b3db6ee 100644 --- a/app/LoadingApp/components/SelectNetwork.tsx +++ b/app/LoadingApp/components/SelectNetwork.tsx @@ -56,16 +56,15 @@ const SelectNetwork: React.FunctionComponent = ({ const screenName = ScreenEnum.Servers; const [kbOpen, setKbOpen] = useState(false); - const [indexerServerUriLocal, setIndexerServerUriLocal] = useState( + const [indexerServerUriLocal] = useState( indexerServerContext.uri ? indexerServerContext.uri : serverUris()[0].uri, ); - const [indexerServerChainNameLocal, setIndexerServerChainNameLocal] = - useState( - indexerServerContext.uri - ? indexerServerContext.chainName - : serverUris()[0].chainName, - ); + const [, setIndexerServerChainNameLocal] = useState( + indexerServerContext.uri + ? indexerServerContext.chainName + : serverUris()[0].chainName, + ); const insets = useSafeAreaInsets(); From 17a064d491efcb81159b4062ca005728ce1d4ae1 Mon Sep 17 00:00:00 2001 From: dorianvp Date: Mon, 13 Apr 2026 16:57:43 +0100 Subject: [PATCH 3/5] finalizer detail pre-fix --- app/LoadingApp/components/ServerListScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/LoadingApp/components/ServerListScreen.tsx b/app/LoadingApp/components/ServerListScreen.tsx index 5cba12f87..68791a5bc 100644 --- a/app/LoadingApp/components/ServerListScreen.tsx +++ b/app/LoadingApp/components/ServerListScreen.tsx @@ -142,7 +142,7 @@ export const ServerListScreen: React.FC = ({ Date: Mon, 13 Apr 2026 17:00:28 +0100 Subject: [PATCH 4/5] fix: scrollview --- .../Staking/Finalizers/FinalizerDetail.tsx | 248 +++++++++--------- 1 file changed, 123 insertions(+), 125 deletions(-) diff --git a/components/Staking/Finalizers/FinalizerDetail.tsx b/components/Staking/Finalizers/FinalizerDetail.tsx index 19e032822..c711281e6 100644 --- a/components/Staking/Finalizers/FinalizerDetail.tsx +++ b/components/Staking/Finalizers/FinalizerDetail.tsx @@ -145,155 +145,153 @@ export function FinalizerDetail({ route }: FinalizerDetailProps) { }; return ( - - + { + if (navigation.canGoBack()) { + navigation.goBack(); + } + }} + ExtraComponent={} + /> + + + + {/* Content */} + - { - if (navigation.canGoBack()) { - navigation.goBack(); - } - }} - ExtraComponent={} - /> - - + > + Staking positions + - {/* Content */} - {/* Staked TX list */} - - Staking positions - + item.txid} + renderItem={renderStakedTxItem} + ItemSeparatorComponent={renderSeparator} + ListEmptyComponent={ + + You don't have any staking positions that match the + currently selected filters. + + } + /> + + + {/* Modal */} + { + if (modalState === 'success') { + setModalState('idle'); + } + }} + > + - item.txid} - renderItem={renderStakedTxItem} - ItemSeparatorComponent={renderSeparator} - ListEmptyComponent={ + {modalState === 'sending' && ( + <> + - You don't have any staking positions that match the - currently selected filters. + Sending unstaking transaction… - } - /> - - + + )} - {/* Modal */} - { - if (modalState === 'success') { - setModalState('idle'); - } - }} - > - - - {modalState === 'sending' && ( - <> - - - Sending unstaking transaction… - - - )} + {modalState === 'success' && ( + <> + + + Unstaking request transaction sent! + - {modalState === 'success' && ( - <> - + - - Unstaking request transaction sent! - - - - - - - )} - + + + )} - - - + + + ); } From 551300e51c8f95f50712b57dac3085fb787124cd Mon Sep 17 00:00:00 2001 From: JC Date: Mon, 13 Apr 2026 10:22:57 -0600 Subject: [PATCH 5/5] fix: lint format fix --- components/Staking/Finalizers/FinalizerDetail.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/components/Staking/Finalizers/FinalizerDetail.tsx b/components/Staking/Finalizers/FinalizerDetail.tsx index c711281e6..f00fdfb2d 100644 --- a/components/Staking/Finalizers/FinalizerDetail.tsx +++ b/components/Staking/Finalizers/FinalizerDetail.tsx @@ -4,7 +4,6 @@ import { KeyboardAvoidingView, Platform, Text, - TouchableWithoutFeedback, View, Modal, Keyboard,