From 7eb1527c393da793425dfd57d781326995323735 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Sat, 12 Jan 2019 19:41:52 +0100 Subject: [PATCH] display reserve in RippleSendForm --- .../Wallet/views/Account/Send/ripple/index.js | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/views/Wallet/views/Account/Send/ripple/index.js b/src/views/Wallet/views/Account/Send/ripple/index.js index e9bc5e06..f6582587 100644 --- a/src/views/Wallet/views/Account/Send/ripple/index.js +++ b/src/views/Wallet/views/Account/Send/ripple/index.js @@ -22,6 +22,16 @@ import type { Props } from './Container'; // and put it inside config/variables.js const SmallScreenWidth = '850px'; +const AmountInputLabelWrapper = styled.div` + display: flex; + justify-content: space-between; +`; + +const AmountInputLabel = styled.span` + text-align: right; + color: ${colors.TEXT_SECONDARY}; +`; + const InputRow = styled.div` padding-bottom: 28px; `; @@ -228,6 +238,7 @@ const AccountSend = (props: Props) => { const tokensSelectData: Array<{ value: string, label: string }> = [{ value: network.symbol, label: network.symbol }]; const tokensSelectValue = tokensSelectData[0]; const isAdvancedSettingsHidden = !advanced; + const accountReserve: ?string = account.networkType === 'ripple' && !account.empty ? account.reserve : null; return ( @@ -252,7 +263,14 @@ const AccountSend = (props: Props) => { autoCorrect="off" autoCapitalize="off" spellCheck="false" - topLabel="Amount" + topLabel={( + + Amount + {accountReserve && ( + Reserve: {accountReserve} {network.symbol} + )} + + )} value={amount} onChange={event => onAmountChange(event.target.value)} bottomText={errors.amount || warnings.amount || infos.amount}