diff --git a/embark-ui/src/components/Accounts.js b/embark-ui/src/components/Accounts.js index 5917cfc2..348d776b 100644 --- a/embark-ui/src/components/Accounts.js +++ b/embark-ui/src/components/Accounts.js @@ -5,9 +5,9 @@ import { Card, Table } from "tabler-react"; +import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; - const Accounts = ({accounts}) => ( @@ -25,7 +25,7 @@ const Accounts = ({accounts}) => ( bodyItems={ accounts.map((account) => { return ([ - {content: account.address}, + {content: {account.address}}, {content: account.balance}, {content: account.transactionCount}, {content: account.index} diff --git a/embark-ui/src/components/Blocks.js b/embark-ui/src/components/Blocks.js index ef986d6a..67329281 100644 --- a/embark-ui/src/components/Blocks.js +++ b/embark-ui/src/components/Blocks.js @@ -1,4 +1,5 @@ import React from 'react'; +import {Link} from "react-router-dom"; import { Page, Grid, @@ -20,7 +21,7 @@ const Blocks = ({blocks}) => ( bodyItems={ blocks.map((block) => { return ([ - {content: block.number}, + {content: {block.number}}, {content: new Date(block.timestamp * 1000).toLocaleString()}, {content: block.gasUsed}, {content: block.transactions.length} diff --git a/embark-ui/src/components/Transactions.js b/embark-ui/src/components/Transactions.js index ff5e9d31..3d16815a 100644 --- a/embark-ui/src/components/Transactions.js +++ b/embark-ui/src/components/Transactions.js @@ -1,4 +1,5 @@ import React from 'react'; +import {Link} from "react-router-dom"; import { Page, Grid, @@ -16,20 +17,20 @@ const Transactions = ({transactions}) => ( responsive className="card-table table-vcenter text-nowrap" headerItems={[ + {content: "Hash"}, {content: "Block Number"}, {content: "From"}, {content: "To"}, - {content: "Type"}, - {content: "Hash"} + {content: "Type"} ]} bodyItems={ transactions.map((transaction) => { return ([ + {content: {transaction.hash}}, {content: transaction.blockNumber}, {content: transaction.from}, {content: transaction.to}, {content: transaction.to ? "Contract Call" : "Contract Creation"}, - {content: transaction.hash} ]); }) }