mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 23:27:26 +01:00
ADD: show frozen amount on send screen, warn in case of send MAX or amount exeeds balance
This commit is contained in:
parent
0620127b6e
commit
b29a94f980
1 changed files with 6 additions and 2 deletions
|
@ -324,13 +324,17 @@ const SendDetails = () => {
|
|||
}
|
||||
}
|
||||
|
||||
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
||||
setFeePrecalc(newFeePrecalc);
|
||||
setFrozenBlance(frozen);
|
||||
}, [wallet, networkTransactionFees, utxo, addresses, feeRate, dumb]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
// we need to re-calculate fees if user opens-closes coin control
|
||||
useFocusEffect(useCallback(() => setDumb(v => !v), []));
|
||||
useFocusEffect(
|
||||
useCallback(() => {
|
||||
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
||||
setDumb(v => !v);
|
||||
}, []),
|
||||
);
|
||||
|
||||
const getChangeAddressFast = () => {
|
||||
if (changeAddress) return changeAddress; // cache
|
||||
|
|
Loading…
Add table
Reference in a new issue