Newer
Older
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
import React, { Component } from 'react';
import { inject } from 'mobx-react';
import PropTypes from 'prop-types';
import { TokenCard } from 'fether-ui';
import { withRouter } from 'react-router-dom';
import withAccount from '../../../utils/withAccount';
import withBalance from '../../../utils/withBalance';
Axel Chalon
committed
@withRouter
hideLoadingAccountTokensModal: PropTypes.func,
componentDidMount () {
const { hideLoadingAccountTokensModal } = this.props;
if (hideLoadingAccountTokensModal) {
hideLoadingAccountTokensModal();
}
}
const {
account: { address },
history,
sendStore,
token
} = this.props;
history.push(`/send/${token.address}/from/${address}`);
return <TokenCard onClick={this.handleClick} {...this.props} />;