💄 omit 'Date' from header fields on mobile

This commit is contained in:
ghalestrilo 2020-08-13 15:52:51 -03:00
parent fe81240ab6
commit 2e34bd7ea3
2 changed files with 4 additions and 4 deletions

View file

@ -143,8 +143,8 @@ class CollectionList extends React.Component {
<thead>
<tr>
{this._renderFieldHeader('name', 'Name')}
{this._renderFieldHeader('createdAt', 'Date Created')}
{this._renderFieldHeader('updatedAt', 'Date Updated')}
{this._renderFieldHeader('createdAt', `${mobile ? '' : 'Date '}Created`)}
{this._renderFieldHeader('updatedAt', `${mobile ? '' : 'Date '}Updated`)}
{this._renderFieldHeader('numItems', '# sketches')}
<th scope="col"></th>
</tr>

View file

@ -437,8 +437,8 @@ class SketchList extends React.Component {
<thead>
<tr>
{this._renderFieldHeader('name', 'Sketch')}
{this._renderFieldHeader('createdAt', 'Date Created')}
{this._renderFieldHeader('updatedAt', 'Date Updated')}
{this._renderFieldHeader('createdAt', `${mobile && 'Date '}Created`)}
{this._renderFieldHeader('updatedAt', `${mobile && 'Date '}Updated`)}
<th scope="col"></th>
</tr>
</thead>