tweak added date format and column width

ref #271
This commit is contained in:
Collin M. Barrett 2018-06-08 11:42:07 -05:00
parent 4a3e0da87a
commit 0698da5dc5

View file

@ -100,9 +100,9 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
filterMethod: (filter: any, row: any) => row[filter.id].toUpperCase()
.includes(filter.value.toUpperCase()),
sortMethod: (a: any, b: any) => a.join().toUpperCase() > b.join().toUpperCase() ? 1 : -1,
Cell: (cell: any) => <div>{moment(cell.value).format("M-D-Y")}</div>,
Cell: (cell: any) => <div>{moment(cell.value).format("M-D-YY")}</div>,
style: { whiteSpace: "inherit" },
width: 60,
width: 70,
headerClassName: "d-none d-sm-block",
className: "d-none d-sm-block"
},