mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
d937bd0fd8
commit
b7fda55faa
2 changed files with 2 additions and 2 deletions
|
|
@ -131,7 +131,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
|
|||
? (moment(b).isValid() ? (moment(a).isBefore(b) ? -1 : 1) : 1)
|
||||
: -1,
|
||||
Cell: (cell: any) => <div>{moment(cell.value).isValid()
|
||||
? moment(cell.value).fromNow()
|
||||
? moment(cell.value).format("l")
|
||||
: "N/A"}</div>,
|
||||
style: { whiteSpace: "inherit" },
|
||||
width: 100,
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ function DiscontinuedDate(props: any) {
|
|||
function UpdatedDate(props: any) {
|
||||
return props.date
|
||||
? <li className="d-md-none list-group-item">
|
||||
<p>Last Updated: {moment(props.date).isValid() ? moment(props.date).fromNow() : "N/A"}</p>
|
||||
<p>Last Updated: {moment(props.date).isValid() ? moment(props.date).format("l") : "N/A"}</p>
|
||||
</li>
|
||||
: null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue