mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
try fixing date filtering
This commit is contained in:
parent
2a4554c116
commit
6eac336dcb
1 changed files with 4 additions and 6 deletions
|
|
@ -97,12 +97,11 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
|
|||
Header: "Updated",
|
||||
accessor: "updatedDate",
|
||||
filterable: true,
|
||||
filterMethod: (filter: any, row: any) => row[filter.id].toUpperCase()
|
||||
.includes(filter.value.toUpperCase()),
|
||||
filterMethod: (filter: any, row: any) => row[filter.id].includes(filter.value),
|
||||
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",
|
||||
|
|
@ -112,12 +111,11 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
|
|||
Header: "Added",
|
||||
accessor: "addedDate",
|
||||
filterable: true,
|
||||
filterMethod: (filter: any, row: any) => row[filter.id].toUpperCase()
|
||||
.includes(filter.value.toUpperCase()),
|
||||
filterMethod: (filter: any, row: any) => row[filter.id].includes(filter.value),
|
||||
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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue