From dc5007281e95049767a8a5fcd35809b4a118ad04 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 6 Aug 2018 10:41:17 +0100 Subject: [PATCH] Show info --- embark-ui/src/components/Block.js | 4 ++-- embark-ui/src/components/Transaction.js | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/embark-ui/src/components/Block.js b/embark-ui/src/components/Block.js index a64896c80..2c69a3520 100644 --- a/embark-ui/src/components/Block.js +++ b/embark-ui/src/components/Block.js @@ -4,10 +4,10 @@ import { } from "tabler-react"; import PropTypes from 'prop-types'; - const Block = ({block}) => ( -

Hello

+

Timestamp: {block.timestamp}

+

Gas used: {block.gasUsed}

); diff --git a/embark-ui/src/components/Transaction.js b/embark-ui/src/components/Transaction.js index 5f7288a9c..ffa7e1803 100644 --- a/embark-ui/src/components/Transaction.js +++ b/embark-ui/src/components/Transaction.js @@ -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}) => ( -

Hello

+

Block: {transaction.blockNumber}

+

From: {transaction.from}

+

To: {transaction.to}

+

Input: {transaction.input}

+

Gas: {transaction.gas}

+

Gas Price: {transaction.gasPrice}

+

Nonce: {transaction.nonce}

);