PR feedback

This commit is contained in:
Anthony Laibe 2018-10-18 15:03:07 +01:00 committed by Pascal Precht
parent 2c74c2aa30
commit ba5e479ae8
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
4 changed files with 12 additions and 23 deletions

View File

@ -20,18 +20,15 @@ const Accounts = ({accounts}) => (
<Row>
<Col>
<strong>Balance</strong>
<br/>
{account.balance} Wei
<div>{account.balance} Wei</div>
</Col>
<Col>
<strong>Tx Count</strong>
<br/>
{account.transactionCount}
<div>{account.transactionCount}</div>
</Col>
<Col>
<strong>Index</strong>
<br/>
{account.index}
<div>{account.index}</div>
</Col>
</Row>
</CardBody>

View File

@ -18,23 +18,19 @@ const Blocks = ({blocks}) => (
<Row>
<Col>
<strong>Number</strong>
<br/>
{block.number}
<div>{block.number}</div>
</Col>
<Col>
<strong>Mined On</strong>
<br/>
{new Date(block.timestamp * 1000).toLocaleString()}
<div>{new Date(block.timestamp * 1000).toLocaleString()}</div>
</Col>
<Col>
<strong>Gas Used</strong>
<br/>
{block.gasUsed}
<div>{block.gasUsed}</div>
</Col>
<Col>
<strong>TX Count</strong>
<br/>
{block.transactions.length}
<div>{block.transactions.length}</div>
</Col>
</Row>
</CardBody>

View File

@ -3,7 +3,7 @@ import {CardTitle} from 'reactstrap';
import Blockies from 'react-blockies';
const CardTitleIdenticon = ({id, children}) => (
<CardTitle><Blockies seed={id}/><span className="ml-2 align-top">{children}</span></CardTitle>
<CardTitle><Blockies seed={id} className="rounded"/><span className="ml-2 align-top">{children}</span></CardTitle>
)
export default CardTitleIdenticon

View File

@ -20,23 +20,19 @@ const Transactions = ({transactions}) => (
<Row>
<Col>
<strong>Block number</strong>
<br/>
{transaction.blockNumber}
<div>{transaction.blockNumber}</div>
</Col>
<Col>
<strong>From</strong>
<br/>
{transaction.from}
<div>{transaction.from}</div>
</Col>
<Col>
<strong>To</strong>
<br/>
{transaction.to}
<div>{transaction.to}</div>
</Col>
<Col>
<strong>Type</strong>
<br/>
{transaction.to ? "Contract Call" : "Contract Creation"}
<div>{transaction.to ? "Contract Call" : "Contract Creation"}</div>
</Col>
</Row>
</CardBody>