Shorten date displayed in Collection List items for better layout

This commit is contained in:
Andrew Nicolaou 2019-09-11 20:06:08 +02:00
parent ee896b06ec
commit fef4bd8d71

View file

@ -216,8 +216,8 @@ class CollectionListRowBase extends React.Component {
<th scope="row"> <th scope="row">
{this.renderCollectionName()} {this.renderCollectionName()}
</th> </th>
<td>{format(new Date(collection.createdAt), 'MMM D, YYYY h:mm A')}</td> <td>{format(new Date(collection.createdAt), 'MMM D, YYYY')}</td>
<td>{format(new Date(collection.updatedAt), 'MMM D, YYYY h:mm A')}</td> <td>{format(new Date(collection.updatedAt), 'MMM D, YYYY')}</td>
<td>{(collection.items || []).length}</td> <td>{(collection.items || []).length}</td>
<td className="sketch-list__dropdown-column"> <td className="sketch-list__dropdown-column">
{this.renderActions()} {this.renderActions()}