// Copyright 2015-2018 Parity Technologies (UK) Ltd. // This file is part of Parity. // // SPDX-License-Identifier: BSD-3-Clause import React, { Component } from 'react'; import { AccountCard, Header } from 'fether-ui'; import { accountsInfo$ } from '@parity/light.js'; import { inject, observer } from 'mobx-react'; import light from '@parity/light.js-react'; import Health from '../../Health'; @light({ accountsInfo: accountsInfo$ }) @inject('createAccountStore', 'parityStore') @observer class AccountsList extends Component { handleClick = ({ currentTarget: { dataset: { address } } }) => { const { history } = this.props; history.push(`/tokens/${address}`); }; handleCreateAccount = () => { this.props.createAccountStore.setIsImport(false); this.props.history.push('/accounts/new'); }; render () { const { accountsInfo } = this.props; return (
Accounts} right={ New account } />
    {accountsInfo ? ( Object.keys(accountsInfo).map(address => (
  • )) ) : (
  • )}
); } } export default AccountsList;