mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
FIX: Lint
This commit is contained in:
parent
97bbe554ea
commit
38f0f7264e
@ -19,7 +19,7 @@ interface TransactionsNavigationHeaderProps {
|
||||
navigate: (route: string, params?: any) => void;
|
||||
goBack: () => void;
|
||||
};
|
||||
onManageFundsPressed?: (id: string) => void;
|
||||
onManageFundsPressed?: (id?: string) => void;
|
||||
onWalletBalanceVisibilityChange?: (isShouldBeVisible: boolean) => void;
|
||||
actionKeys: {
|
||||
CopyToClipboard: 'copyToClipboard';
|
||||
@ -103,10 +103,11 @@ const TransactionsNavigationHeader: React.FC<TransactionsNavigationHeaderProps>
|
||||
onWalletUnitChange?.(updatedWallet);
|
||||
};
|
||||
|
||||
const handleManageFundsPressed = (actionKeyID: string) => {
|
||||
const handleManageFundsPressed = (actionKeyID?: string) => {
|
||||
if (onManageFundsPressed) {
|
||||
onManageFundsPressed(actionKeyID);
|
||||
}
|
||||
if (actionKeyID) {
|
||||
onManageFundsPressed(actionKeyID);
|
||||
}}
|
||||
};
|
||||
|
||||
const handleOnPaymentCodeButtonPressed = () => {
|
||||
@ -260,13 +261,13 @@ const TransactionsNavigationHeader: React.FC<TransactionsNavigationHeaderProps>
|
||||
style={styles.manageFundsButton}
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel={loc.lnd.title}
|
||||
onPress={handleManageFundsPressed}
|
||||
onPress={() => handleManageFundsPressed()}
|
||||
>
|
||||
<Text style={styles.manageFundsButtonText}>{loc.lnd.title}</Text>
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
{wallet.type === MultisigHDWallet.type && (
|
||||
<TouchableOpacity style={styles.manageFundsButton} accessibilityRole="button" onPress={handleManageFundsPressed}>
|
||||
<TouchableOpacity style={styles.manageFundsButton} accessibilityRole="button" onPress={() => handleManageFundsPressed()}>
|
||||
<Text style={styles.manageFundsButtonText}>{loc.multisig.manage_keys}</Text>
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
|
@ -438,14 +438,12 @@ const WalletTransactions = ({ navigation }) => {
|
||||
navigate('SelectWallet', { onWalletSelect, chainType: Chain.ONCHAIN });
|
||||
}
|
||||
} else if (id === actionKeys.RefillWithExternalWallet) {
|
||||
if (wallet.getUserHasSavedExport()) {
|
||||
navigate('ReceiveDetailsRoot', {
|
||||
screen: 'ReceiveDetails',
|
||||
params: {
|
||||
walletID: wallet.getID(),
|
||||
},
|
||||
});
|
||||
}
|
||||
navigate('ReceiveDetailsRoot', {
|
||||
screen: 'ReceiveDetails',
|
||||
params: {
|
||||
walletID: wallet.getID(),
|
||||
},
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user