Newer
Older
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
import { withRouter } from 'react-router-dom';
const { history, token, tokensStore } = this.props;
const { history, token, tokensStore } = this.props;
const {
token,
tokensStore: { tokens }
} = this.props;
<TokenCard balance={null} showBalance={false} token={token}>
{tokens[token.address] ? (
<button
className='button -utility -bad'
onClick={this.handleRemoveToken}
>
Remove
</button>
) : (
<button
className='button -utility -good'
onClick={this.handleAddToken}
>
Add
</button>
)}
</li>
);
}
}
export default NewTokenItem;