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:
parent
22920f2660
commit
35c589c94c
8 changed files with 58 additions and 42 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue