This commit is contained in:
Marcos Rodriguez Velez 2024-12-30 18:03:15 -04:00
parent 0964c1843a
commit c4bca5e1c5
2 changed files with 7 additions and 5 deletions

View file

@ -3,7 +3,7 @@ import dayjs from 'dayjs';
import localizedFormat from 'dayjs/plugin/localizedFormat';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Image, LayoutAnimation, Pressable, StyleSheet, TextInput, TouchableOpacity, TouchableWithoutFeedback, View } from 'react-native';
import { Image, LayoutAnimation, Pressable, StyleSheet, TextInput, TouchableOpacity, View } from 'react-native';
import { Badge, Icon, Text } from '@rneui/themed';
import {
@ -254,7 +254,7 @@ class AmountInput extends Component {
});
return (
<TouchableWithoutFeedback
<Pressable
accessibilityRole="button"
accessibilityLabel={loc._.enter_amount}
disabled={this.props.pointerEvents === 'none'}
@ -340,7 +340,7 @@ class AmountInput extends Component {
</View>
)}
</>
</TouchableWithoutFeedback>
</Pressable>
);
}
}

View file

@ -64,7 +64,7 @@ interface IPaymentDestinations {
amountSats?: number | string;
amount?: string | number | 'MAX';
key: string; // random id to look up this record
unit?: BitcoinUnit;
unit: BitcoinUnit;
}
interface IFee {
@ -101,7 +101,9 @@ const SendDetails = () => {
const [wallet, setWallet] = useState<TWallet | null>(null);
const feeModalRef = useRef<BottomModalHandle>(null);
const { isVisible } = useKeyboard();
const [addresses, setAddresses] = useState<IPaymentDestinations[]>([]);
const [addresses, setAddresses] = useState<IPaymentDestinations[]>([
{ address: '', key: String(Math.random()), unit: amountUnit } as IPaymentDestinations,
]);
const [networkTransactionFees, setNetworkTransactionFees] = useState(new NetworkTransactionFee(3, 2, 1));
const [networkTransactionFeesIsLoading, setNetworkTransactionFeesIsLoading] = useState(false);
const [customFee, setCustomFee] = useState<string | null>(null);