From 2e34bd7ea35d5c45ea7ac6c3a2a6ac3d0513f257 Mon Sep 17 00:00:00 2001 From: ghalestrilo Date: Thu, 13 Aug 2020 15:52:51 -0300 Subject: [PATCH] :lipstick: omit 'Date' from header fields on mobile --- .../modules/IDE/components/CollectionList/CollectionList.jsx | 4 ++-- client/modules/IDE/components/SketchList.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/modules/IDE/components/CollectionList/CollectionList.jsx b/client/modules/IDE/components/CollectionList/CollectionList.jsx index 4a933f41..9b9b3807 100644 --- a/client/modules/IDE/components/CollectionList/CollectionList.jsx +++ b/client/modules/IDE/components/CollectionList/CollectionList.jsx @@ -143,8 +143,8 @@ class CollectionList extends React.Component { {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')} diff --git a/client/modules/IDE/components/SketchList.jsx b/client/modules/IDE/components/SketchList.jsx index 4aacd8c2..4940a495 100644 --- a/client/modules/IDE/components/SketchList.jsx +++ b/client/modules/IDE/components/SketchList.jsx @@ -437,8 +437,8 @@ class SketchList extends React.Component { {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`)}