From a4c4c4ce5546c741efc4d4718b759721cdd1cf86 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Thu, 15 Nov 2018 13:15:23 +0100 Subject: [PATCH] Added button --- .../Send/components/AdvancedForm/index.js | 51 +++++++++++++------ 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/src/views/Wallet/views/Account/Send/components/AdvancedForm/index.js b/src/views/Wallet/views/Account/Send/components/AdvancedForm/index.js index 14a15300..380ac123 100644 --- a/src/views/Wallet/views/Account/Send/components/AdvancedForm/index.js +++ b/src/views/Wallet/views/Account/Send/components/AdvancedForm/index.js @@ -9,6 +9,7 @@ import Textarea from 'components/Textarea'; import Tooltip from 'components/Tooltip'; import Icon from 'components/Icon'; import ICONS from 'config/icons'; +import { FONT_SIZE } from 'config/variables'; import type { Props as BaseProps } from '../../Container'; @@ -28,6 +29,7 @@ const InputRow = styled.div` const InputLabelWrapper = styled.div` display: flex; align-items: center; + justify-content: space-between; `; const GreenSpan = styled.span` @@ -110,6 +112,18 @@ const getDataTextareaState = (dataError: string, dataWarning: string): string => return state; }; +const Left = styled.div` + display: flex; + align-items: center; +`; + +const Right = styled.div` + display: flex; + flex-direction: row; + font-size: ${FONT_SIZE.SMALLER}; + cursor: pointer; +`; + // stateless component const AdvancedForm = (props: Props) => { const { @@ -155,25 +169,30 @@ const AdvancedForm = (props: Props) => { spellCheck="false" topLabel={( + Gas limit - + Gas limit refers to the maximum amount of gas user is willing to spendon a particular transaction.{' '} - Transaction fee = gas limit * gas price.{' '}Increasing the gas limit will not get the transaction confirmed sooner. + Transaction fee = gas limit * gas price.{' '}Increasing the gas limit will not get the transaction confirmed sooner. Default value for sending {gasLimitTooltipCurrency} is {gasLimitTooltipValue}. - - )} - maxWidth={410} - readMoreLink="https://wiki.trezor.io/Ethereum_Wallet#Gas_limit" - placement="top" - > - - + + )} + maxWidth={410} + readMoreLink="https://wiki.trezor.io/Ethereum_Wallet#Gas_limit" + placement="top" + > + + + + + Set default + )} bottomText={errors.gasLimit || warnings.gasLimit || infos.gasLimit || (calculatingGasLimit ? 'Calculating...' : '')}