mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
PR feedback
This commit is contained in:
parent
2c74c2aa30
commit
ba5e479ae8
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user