Skip to content

Commit

Permalink
remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
hackmod committed Oct 23, 2018
1 parent 45c8171 commit 15d5389
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 0 additions & 2 deletions ui/app/components/account-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ function mapStateToProps (state) {
selectedAddress: state.metamask.selectedAddress,
isAccountMenuOpen: state.metamask.isAccountMenuOpen,
keyrings: state.metamask.keyrings,
ticker: state.metamask.ticker,
identities: state.metamask.identities,
accounts: state.metamask.accounts,
}
Expand Down Expand Up @@ -153,7 +152,6 @@ AccountMenu.prototype.renderAccounts = function () {
identities,
accounts,
selectedAddress,
ticker,
keyrings,
showAccountDetail,
} = this.props
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default class TransactionListItem extends PureComponent {
showCancel: PropTypes.bool,
showRetry: PropTypes.bool,
showTransactionDetailsModal: PropTypes.func,
fromCurrency: PropTypes.string,
token: PropTypes.object,
tokenData: PropTypes.object,
transaction: PropTypes.object,
Expand Down Expand Up @@ -93,7 +92,7 @@ export default class TransactionListItem extends PureComponent {
}

renderPrimaryCurrency () {
const { token, fromCurrency, transaction: { txParams: { data } = {} } = {}, value } = this.props
const { token, transaction: { txParams: { data } = {} } = {}, value } = this.props

return token
? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,17 @@ import { setSelectedToken, retryTransaction, showModal } from '../../actions'
import { hexToDecimal } from '../../helpers/conversions.util'
import { getTokenData } from '../../helpers/transactions.util'
import { formatDate } from '../../util'
import { getFromCurrency } from '../../selectors.js'

const mapStateToProps = (state, ownProps) => {
const { transaction: { txParams: { value, nonce, data } = {}, time } = {} } = ownProps

const tokenData = data && getTokenData(data)
const nonceAndDate = nonce ? `#${hexToDecimal(nonce)} - ${formatDate(time)}` : formatDate(time)
const fromCurrency = getFromCurrency(state)

return {
value,
nonceAndDate,
tokenData,
fromCurrency,
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ export default class TransactionViewBalance extends PureComponent {
history: PropTypes.object,
network: PropTypes.string,
balance: PropTypes.string,
fromCurrency: PropTypes.string,
assetImage: PropTypes.string,
}

renderBalance () {
const { selectedToken, balance, fromCurrency } = this.props
const { selectedToken, balance } = this.props

return selectedToken
? (
Expand Down

0 comments on commit 15d5389

Please sign in to comment.