This commit is contained in:
Marcos Rodriguez Velez 2024-07-22 01:21:40 -04:00
parent 81485ff863
commit 6e7fcbeca6
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7
2 changed files with 7 additions and 6 deletions

View File

@ -863,8 +863,8 @@ const SendDetails = () => {
} }
}; };
const importTransactionMultisigScanQr = () => { const importTransactionMultisigScanQr = async () => {
optionsModalRef.current?.dismiss(); await optionsModalRef.current?.dismiss();
requestCameraAuthorization().then(() => { requestCameraAuthorization().then(() => {
navigation.navigate('ScanQRCodeRoot', { navigation.navigate('ScanQRCodeRoot', {
screen: 'ScanQRCode', screen: 'ScanQRCode',
@ -878,7 +878,7 @@ const SendDetails = () => {
const handleAddRecipient = async () => { const handleAddRecipient = async () => {
console.debug('handleAddRecipient'); console.debug('handleAddRecipient');
optionsModalRef.current?.dismiss(); await optionsModalRef.current?.dismiss();
setAddresses(addrs => [...addrs, { address: '', key: String(Math.random()) } as IPaymentDestinations]); setAddresses(addrs => [...addrs, { address: '', key: String(Math.random()) } as IPaymentDestinations]);
await sleep(200); // wait for animation await sleep(200); // wait for animation
@ -888,7 +888,7 @@ const SendDetails = () => {
}; };
const handleRemoveRecipient = async () => { const handleRemoveRecipient = async () => {
optionsModalRef.current?.dismiss(); await optionsModalRef.current?.dismiss();
const last = scrollIndex.current === addresses.length - 1; const last = scrollIndex.current === addresses.length - 1;
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut); LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
setAddresses(addrs => { setAddresses(addrs => {
@ -903,6 +903,7 @@ const SendDetails = () => {
}; };
const handleCoinControl = async () => { const handleCoinControl = async () => {
await optionsModalRef.current?.dismiss();
if (!wallet) return; if (!wallet) return;
navigation.navigate('CoinControl', { navigation.navigate('CoinControl', {
walletID: wallet?.getID(), walletID: wallet?.getID(),
@ -911,8 +912,8 @@ const SendDetails = () => {
}; };
const handleInsertContact = async () => { const handleInsertContact = async () => {
if (!wallet) return;
await optionsModalRef.current?.dismiss(); await optionsModalRef.current?.dismiss();
if (!wallet) return;
navigation.navigate('PaymentCodeList', { walletID: wallet.getID() }); navigation.navigate('PaymentCodeList', { walletID: wallet.getID() });
}; };

View File

@ -474,7 +474,7 @@ const styles = StyleSheet.create({
padding: 22, padding: 22,
paddingTop: 66, paddingTop: 66,
}, },
modalMinHeight: Platform.OS === 'android' ? { minHeight: 350 } : {}, modalMinHeight: Platform.OS === 'android' ? { minHeight: 420 } : {},
empty: { empty: {
flex: 1, flex: 1,
justifyContent: 'center', justifyContent: 'center',