diff --git a/common/containers/Tabs/Swap/components/wantToSwapMy.js b/common/containers/Tabs/Swap/components/currencySwap.js similarity index 97% rename from common/containers/Tabs/Swap/components/wantToSwapMy.js rename to common/containers/Tabs/Swap/components/currencySwap.js index f223c1d2..be58f129 100644 --- a/common/containers/Tabs/Swap/components/wantToSwapMy.js +++ b/common/containers/Tabs/Swap/components/currencySwap.js @@ -31,9 +31,9 @@ class CoinTypeDropDown extends Component { } } -export default class WantToSwapMy extends Component { - constructor(props, context) { - super(props, context); +export default class CurrencySwap extends Component { + constructor(props) { + super(props); } static propTypes = { diff --git a/common/containers/Tabs/Swap/components/currentRates.js b/common/containers/Tabs/Swap/components/currentRates.js index eed17fd7..1016bec4 100644 --- a/common/containers/Tabs/Swap/components/currentRates.js +++ b/common/containers/Tabs/Swap/components/currentRates.js @@ -49,12 +49,10 @@ export default class CurrentRates extends Component { name="ETHBTCAmount" /> - ETH ={' '} - {toFixedIfLarger( + {` ETH = ${toFixedIfLarger( this.state.ETHBTCAmount * this.props.ETHBTC, 6 - )}{' '} - BTC + )} BTC`}
@@ -65,12 +63,10 @@ export default class CurrentRates extends Component { name="ETHREPAmount" /> - ETH ={' '} - {toFixedIfLarger( + {` ETH = ${toFixedIfLarger( this.state.ETHREPAmount * this.props.ETHREP, 6 - )}{' '} - REP + )} REP`}
@@ -83,12 +79,10 @@ export default class CurrentRates extends Component { name="BTCETHAmount" /> - BTC ={' '} - {toFixedIfLarger( + {` BTC = ${toFixedIfLarger( this.state.BTCETHAmount * this.props.BTCETH, 6 - )}{' '} - ETH + )} ETH`}@@ -99,12 +93,10 @@ export default class CurrentRates extends Component { name="BTCREPAmount" /> - BTC ={' '} - {toFixedIfLarger( + {` BTC = ${toFixedIfLarger( this.state.BTCREPAmount * this.props.BTCREP, 6 - )}{' '} - REP + )} REP`}
diff --git a/common/containers/Tabs/Swap/components/yourReceiving.js b/common/containers/Tabs/Swap/components/receivingAddress.js similarity index 97% rename from common/containers/Tabs/Swap/components/yourReceiving.js rename to common/containers/Tabs/Swap/components/receivingAddress.js index cde16274..a0cd4a80 100644 --- a/common/containers/Tabs/Swap/components/yourReceiving.js +++ b/common/containers/Tabs/Swap/components/receivingAddress.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import { DONATION_ADDRESSES_MAP } from 'config/data'; import Validator from 'libs/validator'; -export default class YourReceiving extends Component { +export default class ReceivingAddress extends Component { constructor(props) { super(props); this.validator = new Validator(); diff --git a/common/containers/Tabs/Swap/components/yourInformation.js b/common/containers/Tabs/Swap/components/swapInformation.js similarity index 83% rename from common/containers/Tabs/Swap/components/yourInformation.js rename to common/containers/Tabs/Swap/components/swapInformation.js index 60e71f86..272e4c49 100644 --- a/common/containers/Tabs/Swap/components/yourInformation.js +++ b/common/containers/Tabs/Swap/components/swapInformation.js @@ -2,7 +2,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { toFixedIfLarger } from 'utils/formatters'; -export default class YourInformation extends Component { +export default class SwapInformation extends Component { constructor(props) { super(props); } @@ -50,20 +50,22 @@ export default class YourInformation extends Component {Amount to send
Amount to receive
Your rate