ADD: show frozen amount on send screen, warn in case of send MAX or amount exeeds balance

This commit is contained in:
Ivan Vershigora 2021-12-23 18:39:33 +03:00
parent 0620127b6e
commit b29a94f980

View file

@ -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