1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-24 05:39:35 +02:00

Display info message on homescreen if applications or categories arrays are empty

This commit is contained in:
unknown 2021-06-08 14:02:19 +02:00
parent 22920f2660
commit 35c589c94c
8 changed files with 58 additions and 42 deletions

View file

@ -96,9 +96,7 @@ const Apps = (props: ComponentProps): JSX.Element => {
{props.loading
? <Spinner />
: (!isInEdit
? props.apps.length > 0
? <AppGrid apps={props.apps} />
: <p className={classes.AppsMessage}>You don't have any applications. You can add a new one from <Link to='/applications'>/application</Link> menu</p>
? <AppGrid apps={props.apps} />
: <AppTable updateAppHandler={toggleUpdate} />)
}
</div>