Skip to content

Commit

Permalink
feat: change contracts status column
Browse files Browse the repository at this point in the history
  • Loading branch information
liorfrenkel committed Sep 29, 2020
1 parent 07a6824 commit 5181888
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,31 @@ class ContractsTable extends Component {
Cell: ({ value }) => <HashLink url={`/contracts/${value}`} hash={value} />,
},
{
Header: 'Status',
Header: 'Active until',
accessor: 'expiryBlock',
minWidth: config.ui.table.minCellWidth,
sortable: true,
Cell: ({ value }) =>
value ? `Active until block ${TextUtils.formatNumber(value)}` : 'Inactive',
Cell: ({ value }) => (value ? TextUtils.formatNumber(value) : 'Inactive'),
},
{
Header: 'Txs',
accessor: 'txsCount',
minWidth: config.ui.table.minCellWidth,
sortable: true,
hideOnMobile: true,
Cell: ({ value }) => TextUtils.formatNumber(value),
},
{
Header: 'Assets Issued',
accessor: 'assetsIssued',
minWidth: config.ui.table.minCellWidth,
hideOnMobile: true,
Cell: ({ value }) => TextUtils.formatNumber(value),
},
{
Header: 'Activation',
accessor: 'lastActivationBlock',
minWidth: config.ui.table.minCellWidth,
sortable: true,
hideOnMobile: true,
Cell: ({ value }) => <Link to={`/blocks/${value}`}>{TextUtils.formatNumber(value)}</Link>,
Expand Down

0 comments on commit 5181888

Please sign in to comment.