From d7a2fc5c861817b8e0aab0c03f7c6602523fb734 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Fri, 8 Nov 2024 18:36:43 -0400 Subject: [PATCH] Update WalletTransactions.tsx --- screen/wallets/WalletTransactions.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/screen/wallets/WalletTransactions.tsx b/screen/wallets/WalletTransactions.tsx index 52b2a2ac3..38cbb6f8e 100644 --- a/screen/wallets/WalletTransactions.tsx +++ b/screen/wallets/WalletTransactions.tsx @@ -43,6 +43,7 @@ import { presentWalletExportReminder } from '../../helpers/presentWalletExportRe import selectWallet from '../../helpers/select-wallet'; import assert from 'assert'; import useMenuElements from '../../hooks/useMenuElements'; +import { useSettings } from '../../hooks/context/useSettings'; const buttonFontSize = PixelRatio.roundToNearestPixel(Dimensions.get('window').width / 26) > 22 @@ -52,7 +53,7 @@ const buttonFontSize = type WalletTransactionsProps = NativeStackScreenProps; const WalletTransactions: React.FC = ({ route }) => { - const { wallets, saveToDisk, setSelectedWalletID, isElectrumDisabled } = useStorage(); + const { wallets, saveToDisk, setSelectedWalletID } = useStorage(); const { setReloadTransactionsMenuActionFunction } = useMenuElements(); const { isBiometricUseCapableAndEnabled } = useBiometrics(); const [isLoading, setIsLoading] = useState(false); @@ -64,6 +65,7 @@ const WalletTransactions: React.FC = ({ route }) => { const navigation = useExtendedNavigation(); const { setOptions, navigate } = navigation; const { colors } = useTheme(); + const { isElectrumDisabled } = useSettings(); const walletActionButtonsRef = useRef(null); const stylesHook = StyleSheet.create({