tweaks to grid dates

This commit is contained in:
Collin M. Barrett 2018-06-08 14:44:58 -05:00
parent 1bfe69502a
commit 71a98c5f33

View file

@ -94,7 +94,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
className: "d-none d-sm-block"
},
{
Header: "Updated",
Header: "Crawled",
accessor: "updatedDate",
filterable: true,
filterMethod: (filter: any, row: any) => row[filter.id].toUpperCase()
@ -102,7 +102,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
sortMethod: (a: any, b: any) => a > b ? 1 : -1,
Cell: (cell: any) => <div>{moment(cell.value).isValid()
? moment(cell.value).format("M-D-YY")
: ""}</div>,
: "N/A"}</div>,
style: { whiteSpace: "inherit" },
width: 75,
headerClassName: "d-none d-sm-block",
@ -117,7 +117,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
sortMethod: (a: any, b: any) => a > b ? 1 : -1,
Cell: (cell: any) => <div>{moment(cell.value).isValid()
? moment(cell.value).format("M-D-YY")
: ""}</div>,
: "N/A"}</div>,
style: { whiteSpace: "inherit" },
width: 75,
headerClassName: "d-none d-sm-block",