Show info

This commit is contained in:
Anthony Laibe 2018-08-06 10:41:17 +01:00 committed by Pascal Precht
parent 96a706aeb0
commit dc5007281e
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 10 additions and 4 deletions

View File

@ -4,10 +4,10 @@ import {
} from "tabler-react";
import PropTypes from 'prop-types';
const Block = ({block}) => (
<Page.Content title={`Block ${block.number}`}>
<p>Hello</p>
<p>Timestamp: {block.timestamp}</p>
<p>Gas used: {block.gasUsed}</p>
</Page.Content>
);

View File

@ -1,13 +1,19 @@
import React from 'react';
import {Link} from 'react-router-dom';
import {
Page
} from "tabler-react";
import PropTypes from 'prop-types';
const Transaction = ({transaction}) => (
<Page.Content title={`Transaction ${transaction.hash}`}>
<p>Hello</p>
<p>Block: <Link to={`/embark/explorer/blocks/${transaction.blockNumber}`}>{transaction.blockNumber}</Link></p>
<p>From: {transaction.from}</p>
<p>To: {transaction.to}</p>
<p>Input: {transaction.input}</p>
<p>Gas: {transaction.gas}</p>
<p>Gas Price: {transaction.gasPrice}</p>
<p>Nonce: {transaction.nonce}</p>
</Page.Content>
);