Newer
Older
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
import React from 'react';
import Blockies from 'react-blockies';
import PropTypes from 'prop-types';
import Card from '../Card';
import Placeholder from '../Placeholder';
const AccountCard = ({ address, animate, name, ...otherProps }) => (
<Card {...otherProps}>
<div className='account'>
<div className='account_avatar'>
{address ? (
<Blockies seed={address.toLowerCase()} />
) : (
<Placeholder animate={animate} height={36} width={36} />
)}
</div>
<div className='account_information'>
{name ? (
<div className='account_name'>{name}</div>
) : (
<Placeholder animate={animate} height={18} width={100} />
{address || <Placeholder animate={animate} height={12} width={150} />}