mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-11 21:26:55 +00:00
43 lines
923 B
JavaScript
43 lines
923 B
JavaScript
import PropTypes from "prop-types";
|
|
import React from 'react';
|
|
import {
|
|
Page,
|
|
Grid,
|
|
Card,
|
|
Table
|
|
} from "tabler-react";
|
|
|
|
const Contract = ({contract}) => (
|
|
<Page.Content title="Contract">
|
|
<Grid.Row>
|
|
<Grid.Col>
|
|
<Card>
|
|
<Table
|
|
responsive
|
|
className="card-table table-vcenter text-nowrap"
|
|
headerItems={[
|
|
{content: "Name"},
|
|
{content: "Address"},
|
|
{content: "State"}
|
|
]}
|
|
bodyItems={[
|
|
[
|
|
{content: (contract.name || contract.className)},
|
|
{content: (contract.address || contract.deployedAddress)},
|
|
{content: contract.deploy.toString()}
|
|
]
|
|
]}
|
|
/>
|
|
</Card>
|
|
</Grid.Col>
|
|
</Grid.Row>
|
|
</Page.Content>
|
|
);
|
|
|
|
Contract.propTypes = {
|
|
contract: PropTypes.object
|
|
};
|
|
|
|
export default Contract;
|
|
|