Update WalletTransactions.tsx

This commit is contained in:
Marcos Rodriguez Velez 2024-11-08 18:36:43 -04:00
parent 7c9a0c2634
commit d7a2fc5c86

View file

@ -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<DetailViewStackParamList, 'WalletTransactions'>;
const WalletTransactions: React.FC<WalletTransactionsProps> = ({ 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<WalletTransactionsProps> = ({ route }) => {
const navigation = useExtendedNavigation();
const { setOptions, navigate } = navigation;
const { colors } = useTheme();
const { isElectrumDisabled } = useSettings();
const walletActionButtonsRef = useRef<View>(null);
const stylesHook = StyleSheet.create({