mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
temp hide updated date
...while experiencing issues with snapshot service (resetting db often) ref #378
This commit is contained in:
parent
f7888581d0
commit
b44ee53e3a
2 changed files with 17 additions and 17 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue