add timestamp to sketch list view

This commit is contained in:
catarak 2016-08-15 17:14:55 -04:00
parent 2f6d5e84e8
commit e823e383e7

View file

@ -35,8 +35,8 @@ class SketchList extends React.Component {
{this.props.sketches.map(sketch =>
<tr className="sketches-table__row" key={sketch.id}>
<td scope="row"><Link to={`/projects/${sketch._id}`}>{sketch.name}</Link></td>
<td>{moment(sketch.createdAt).format('MMM D, YYYY')}</td>
<td>{moment(sketch.updatedAt).format('MMM D, YYYY')}</td>
<td>{moment(sketch.createdAt).format('MMM D, YYYY h:mm:ss A')}</td>
<td>{moment(sketch.updatedAt).format('MMM D, YYYY h:mm:ss A')}</td>
</tr>
)}
</tbody>