Browse Source

Updated empty content text.

Pushkar Anand 4 years ago
parent
commit
a3379dc53a
2 changed files with 4 additions and 3 deletions
  1. 2 2
      src/pages/gallery/index.tsx
  2. 2 1
      src/utils/strings/englishConstants.tsx

+ 2 - 2
src/pages/gallery/index.tsx

@@ -20,6 +20,7 @@ import Collections from './components/Collections';
 import SadFace from 'components/SadFace';
 import Upload from './components/Upload';
 import { collection, fetchCollections, collectionLatestFile, getCollectionLatestFile, getFavItemIds } from 'services/collectionService';
+import constants from 'utils/strings/constants';
 
 enum ITEM_TYPE {
     TIME = 'TIME',
@@ -403,8 +404,7 @@ export default function Gallery(props) {
                 </Container>
             ) : (
                     <DeadCenter>
-                        <SadFace height={100} width={100} />
-                        <div>No content found!</div>
+                        <div>{constants.NOTHING_HERE}</div>
                     </DeadCenter>
                 )}
         </>

+ 2 - 1
src/utils/strings/englishConstants.tsx

@@ -43,7 +43,8 @@ const englishConstants = {
     CONSOLE_WARNING_STOP: 'STOP!',
     CONSOLE_WARNING_DESC: `This is a browser feature intended for developers. If someone told you to copy-paste something here to enable a feature or "hack" someone's account, it is a scam and will give them access to your account.`,
     SELECT_COLLECTION: `Select/Click on Collection to upload`,
-    CLOSE: 'Close'
+    CLOSE: 'Close',
+    NOTHING_HERE: `nothing to see here! 👀`,
 };
 
 export default englishConstants;