temp hide updated date

...while experiencing issues with snapshot service (resetting db often)

ref #378
This commit is contained in:
Collin M. Barrett 2018-08-22 19:26:27 -05:00
parent f7888581d0
commit b44ee53e3a
2 changed files with 17 additions and 17 deletions

View file

@ -132,22 +132,22 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
headerClassName: "d-none d-lg-block",
className: "d-none d-lg-block"
},
{
Header: "Updated",
accessor: "updatedDate",
filterable: true,
filterMethod: (filter: any, row: any) => row[filter.id].includes(filter.value),
sortMethod: (a: any, b: any) => moment(a).isValid()
? (moment(b).isValid() ? (moment(a).isBefore(b) ? -1 : 1) : 1)
: -1,
Cell: (cell: any) => <div>{moment(cell.value).isValid()
? moment(cell.value).format("l")
: "N/A"}</div>,
style: { whiteSpace: "inherit" },
width: 100,
headerClassName: "d-none d-lg-block",
className: "d-none d-lg-block"
},
//{
// Header: "Updated",
// accessor: "updatedDate",
// filterable: true,
// filterMethod: (filter: any, row: any) => row[filter.id].includes(filter.value),
// sortMethod: (a: any, b: any) => moment(a).isValid()
// ? (moment(b).isValid() ? (moment(a).isBefore(b) ? -1 : 1) : 1)
// : -1,
// Cell: (cell: any) => <div>{moment(cell.value).isValid()
// ? moment(cell.value).format("l")
// : "N/A"}</div>,
// style: { whiteSpace: "inherit" },
// width: 100,
// headerClassName: "d-none d-lg-block",
// className: "d-none d-lg-block"
//},
{
Header: "Details",
accessor: "id",

View file

@ -56,7 +56,7 @@ function ListInfo(props: any) {
<Languages languages={props.details.languages}/>
<RuleCount count={props.details.ruleCount}/>
<DiscontinuedDate date={props.details.discontinuedDate}/>
<UpdatedDate date={props.details.updatedDate}/>
{/* <UpdatedDate date={props.details.updatedDate}/>--> */}
<PublishedDate date={props.details.publishedDate}/>
<License license={props.details.license}/>
</ul>