mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-24 21:39:36 +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
|
@ -134,14 +134,12 @@ const Bookmarks = (props: ComponentProps): JSX.Element => {
|
|||
{props.loading
|
||||
? <Spinner />
|
||||
: (!isInEdit
|
||||
? props.categories.length > 0
|
||||
? <BookmarkGrid categories={props.categories} />
|
||||
: <p className={classes.BookmarksMessage}>You don't have any bookmarks. You can add a new one from <Link to='/bookmarks'>/bookmarks</Link> menu</p>
|
||||
: (<BookmarkTable
|
||||
? <BookmarkGrid categories={props.categories} />
|
||||
: <BookmarkTable
|
||||
contentType={tableContentType}
|
||||
categories={props.categories}
|
||||
updateHandler={goToUpdateMode}
|
||||
/>)
|
||||
/>
|
||||
)
|
||||
}
|
||||
</Container>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue