OSDN Git Service

add the transaction fee description.
authorZhiting Lin <zlin035@uottawa.ca>
Wed, 10 Oct 2018 10:34:28 +0000 (18:34 +0800)
committerZhiting Lin <zlin035@uottawa.ca>
Wed, 10 Oct 2018 10:34:28 +0000 (18:34 +0800)
src/features/transactions/components/New/New.scss
src/features/transactions/components/New/NormalTransactionForm.jsx

index 9edf428..c361379 100644 (file)
@@ -6,6 +6,17 @@
   flex-direction: row;
 }
 
+.txFeeBox{
+  display: flex;
+  align-items: center;
+}
+
+.feeDescription{
+  width: 50%;
+  margin-left: $gutter-size;
+  margin-bottom: $gutter-size;
+}
+
 .center{
   margin: 0 auto;
   width: 100%;
index 98e20d0..cec8842 100644 (file)
@@ -220,7 +220,7 @@ class NormalTxForm extends React.Component {
 
                 {index===0 ?
                   <a href='#' className={styles.receiverBtn} onClick={this.addReceiverItem}>+</a> :
-                  <a href='#' className={`${styles.receiverBtn} text-danger`}onClick={() => this.removeReceiverItem(index)}>-</a>
+                  <a href='#' className={`${styles.receiverBtn} text-danger`} onClick={()=> this.removeReceiverItem(index)}>-</a>
                 }
 
               </div>
@@ -228,11 +228,16 @@ class NormalTxForm extends React.Component {
             </div>
 
             <label className={styles.title}>{lang === 'zh' ? '选择手续费' : 'Select Fee'}</label>
-            <GasField
-              gas={this.state.estimateGas}
-              fieldProps={gasLevel}
-              btmAmountUnit={this.props.btmAmountUnit}
-            />
+            <div className={styles.txFeeBox}>
+              <GasField
+                gas={this.state.estimateGas}
+                fieldProps={gasLevel}
+                btmAmountUnit={this.props.btmAmountUnit}
+              />
+              <span className={styles.feeDescription}> {lang ==='zh'?
+                '交易所需手续费, 你的交易将会在2.5分钟之后完成。':
+                'This is the money that might be used to process this transaction. Your transaction will be mined usually within 2.5 minutes.'}</span>
+            </div>
           </div>
 
           <FormSection className={styles.submitSection}>