Newer
Older
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
import React from 'react';
import PropTypes from 'prop-types';
import Address from './Address';
import Avatar from './Avatar';
import Information from './Information';
import Name from './Name';
const AccountCard = ({ address, name, shortAddress, ...otherProps }) => (
<Avatar address={address} />
<Information>
<Name name={name} />
<Address address={address} short={shortAddress} />
</Information>
AccountCard.Address = Address;
AccountCard.Avatar = Avatar;
AccountCard.Information = Information;
AccountCard.Name = Name;
AccountCard.propTypes = {
address: PropTypes.string,
name: PropTypes.string,
shortAddress: PropTypes.bool