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

Pin/Delete category

This commit is contained in:
unknown 2021-05-25 14:05:53 +02:00
parent bd5354a2e3
commit 0f2125e720
8 changed files with 156 additions and 7 deletions

View file

@ -99,7 +99,9 @@ const Bookmarks = (props: ComponentProps): JSX.Element => {
{props.loading
? <Spinner />
: (!isInEdit
? <BookmarkGrid categories={props.categories} />
? props.categories.length > 0
? <BookmarkGrid categories={props.categories} />
: <p className={classes.BookmarksMessage}>You don't have any bookmarks. You can a new one from <Link to='/bookmarks'>/bookmarks</Link> menu</p>
: <BookmarkTable contentType={tableContentType} categories={props.categories} />)
}
</Container>