From f3420b35d1ef8f88056d76e974ab4644dfbf9da1 Mon Sep 17 00:00:00 2001 From: jorgemasta Date: Fri, 24 Feb 2023 12:24:28 +0000 Subject: [PATCH] feat: reduce unnecessary space from success view --- screen/send/success.js | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/screen/send/success.js b/screen/send/success.js index ce65a0eb9..75a367321 100644 --- a/screen/send/success.js +++ b/screen/send/success.js @@ -79,24 +79,27 @@ export const SuccessView = ({ amount, amountUnit, fee, invoiceDescription, shoul return ( - - - {amount ? ( - <> - {amount} - {' ' + loc.units[amountUnit]} - - ) : null} - - {fee > 0 && ( - - {loc.send.create_fee}: {new BigNumber(fee).toFixed()} {loc.units[BitcoinUnit.BTC]} + {amount || fee > 0 ? ( + + + {amount ? ( + <> + {amount} + {' ' + loc.units[amountUnit]} + + ) : null} + + {fee > 0 && ( + + {loc.send.create_fee}: {new BigNumber(fee).toFixed()} {loc.units[BitcoinUnit.BTC]} + + )} + + {invoiceDescription} - )} - - {invoiceDescription} - - + + ) : null} + @@ -177,7 +181,7 @@ const styles = StyleSheet.create({ marginBottom: 53, }, lottie: { - width: 400, - height: 400, + width: 200, + height: 200, }, });