diff --git a/frontend/src/HomePage/HomePage.jsx b/frontend/src/HomePage/HomePage.jsx index 4d75968608..a92cdc91e7 100644 --- a/frontend/src/HomePage/HomePage.jsx +++ b/frontend/src/HomePage/HomePage.jsx @@ -113,9 +113,9 @@ class HomePage extends React.Component { const { apps, isLoading, creatingApp, meta, currentFolder, showAppDeletionConfirmation, isDeletingApp } = this.state; + return (
- {}} /> -
- {!isLoading && meta.total_count === 0 && - - } +
+ {!isLoading && meta.total_count === 0 && } - {(isLoading || meta.total_count > 0) && + {(isLoading || meta.total_count > 0) && ( +
+
+
+
+
+ +
-
-
-
-
-
- -
- -
- -
-
-
-

{currentFolder.id ? `Folder: ${currentFolder.name}` : 'All applications'}

-
+
+
+
+
+

+ {currentFolder.id ? `Folder: ${currentFolder.name}` : 'All applications'} +

+
- +
-
+
+ className={`table table-vcenter ${this.props.darkMode ? 'bg-dark' : 'bg-white'}`} + > {isLoading && ( <> {Array.from(Array(10)).map(() => ( - - - - - - - ))} - + + + + + + + ))} )} {meta.total_count > 0 && ( <> + {apps.map((app) => ( + + + - - - )) - } - ) - } - {currentFolder.count == 0 && ( + this.deleteApp(app)} + /> + + + ))} + + )} + {currentFolder.count == 0 && (
- - This folder is empty -
+ + This folder is empty + )}
-
-
-
- -
-
-
-
+
+
+
+
+
+
+
+ {app.name}
+ + created {Date(app.created_at)} ago by {app.user.first_name} {app.user.last_name}{' '} + +
+ + renderTooltip({ props, text: 'Open in app builder' })} + > + Edit + + + + renderTooltip({ props, text: 'Open in app viewer' })} + > + launch + + - {apps.map((app) => ( -
- {app.name}
- created {app.created_at} ago by {app.user.first_name} {app.user.last_name} -
- - renderTooltip({props, text: 'Open in app builder'})} - > - - Edit - - - - - renderTooltip({props, text: 'Open in app viewer'})} - > - launch - - - - - this.deleteApp(app)} - /> -
@@ -255,12 +255,11 @@ class HomePage extends React.Component { /> )}
+
-
-
- } + )}
); }