From 5181888aaee3d175ffe5c03acee51ae8f64d823a Mon Sep 17 00:00:00 2001 From: Lior Frenkel Date: Tue, 29 Sep 2020 16:51:19 +0300 Subject: [PATCH] feat: change contracts status column --- .../components/ContractsTable/ContractsTable.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pages/contracts/components/ContractsTable/ContractsTable.jsx b/src/pages/contracts/components/ContractsTable/ContractsTable.jsx index 269dca9d..2d2432ca 100644 --- a/src/pages/contracts/components/ContractsTable/ContractsTable.jsx +++ b/src/pages/contracts/components/ContractsTable/ContractsTable.jsx @@ -25,15 +25,16 @@ class ContractsTable extends Component { Cell: ({ 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), @@ -41,12 +42,14 @@ class ContractsTable extends Component { { 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 }) => {TextUtils.formatNumber(value)},