mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-08 21:34:55 +00:00
Show info
This commit is contained in:
parent
7304715fda
commit
6ab8b2086b
@ -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>
|
||||
);
|
||||
|
||||
|
@ -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>
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user