From 667cafdb05b5de13deddbbf2969bd52a9774a82e Mon Sep 17 00:00:00 2001 From: Zhiting Lin Date: Wed, 19 Sep 2018 15:57:35 +0800 Subject: [PATCH] padding the btn-group tab. --- src/features/transactions/components/New/New.scss | 8 ++++++++ .../transactions/components/New/NormalTransactionForm.jsx | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/features/transactions/components/New/New.scss b/src/features/transactions/components/New/New.scss index 080a9a2..1797cc9 100644 --- a/src/features/transactions/components/New/New.scss +++ b/src/features/transactions/components/New/New.scss @@ -55,6 +55,14 @@ .btnGroup { margin-top: $gutter-size; text-align: center; + button{ + padding: 0 40px; + color: $text-color; + &.active{ + background-color: $highlight-default; + color: white; + } + } } .title { diff --git a/src/features/transactions/components/New/NormalTransactionForm.jsx b/src/features/transactions/components/New/NormalTransactionForm.jsx index ee4c462..8ab5d98 100644 --- a/src/features/transactions/components/New/NormalTransactionForm.jsx +++ b/src/features/transactions/components/New/NormalTransactionForm.jsx @@ -36,7 +36,7 @@ class NormalTxForm extends React.Component { return !!(target && target.value) } - return !( (this.state.estimateGas)&& + return !( (this.state.estimateGas) && (hasValue(props.accountId) || hasValue(props.accountAlias)) && (hasValue(props.assetId) || hasValue(props.assetAlias)) && hasValue(props.address) && (hasValue(props.amount)) && -- 2.11.0