embark/embark-ui/src/components/Account.js

24 lines
519 B
JavaScript
Raw Normal View History

2018-08-03 15:51:15 +00:00
import React from 'react';
2018-10-15 10:08:57 +00:00
import {Row, Col} from 'reactstrap';
2018-08-03 15:51:15 +00:00
import PropTypes from 'prop-types';
2018-10-17 12:24:57 +00:00
import Description from './Description';
2018-08-03 15:51:15 +00:00
const Account = ({account}) => (
2018-10-15 10:08:57 +00:00
<Row>
<Col>
2018-10-17 12:24:57 +00:00
<h1>Account {account.address}</h1>
<dl class="row">
<Description label="Balance" value={account.balance} />
<Description label="Transaction count" value={account.transactionCount} />
</dl>
2018-10-15 10:08:57 +00:00
</Col>
</Row>
2018-08-03 15:51:15 +00:00
);
Account.propTypes = {
account: PropTypes.object
};
export default Account;