Newer
Older
// Copyright 2015-2019 Parity Technologies (UK) Ltd.
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
const {
account: { address },
history,
sendStore,
token
} = this.props;
history.push(`/send/${token.address}/from/${address}`);
return <TokenCard onClick={this.handleClick} {...this.props} />;