Dashboard- App creation date not readable (#482)

* fix-dateCreated

* fixed date format

* Revert "fixed date format"

This reverts commit ee8e99f2f7.

* Revert "fix-dateCreated"

This reverts commit 66eac07917.

* dateformat fixed-dashboardapp
This commit is contained in:
Arpit Nath 2021-08-09 19:46:10 +05:30 committed by GitHub
parent 915d66107e
commit 6442f23752
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
import { renderTooltip } from '@/_helpers/appUtils';
import { ConfirmDialog } from '@/_components';
import { toast } from 'react-toastify';
import moment from 'moment'
class HomePage extends React.Component {
constructor(props) {
super(props);
@ -197,7 +197,7 @@ class HomePage extends React.Component {
<tr className="row">
<td className="col p-3">
<span className="app-title mb-3">{app.name}</span> <br />
<small className="pt-2 app-description">created {app.created_at} ago by {app.user.first_name} {app.user.last_name} </small>
<small className="pt-2 app-description">created {moment(app.created_at).fromNow()} ago by {app.user.first_name} {app.user.last_name} </small>
</td>
<td className="text-muted col-auto pt-4">
<Link