mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
🔧 fix: add clear all button to bookmark navigation items (#3721)
This commit is contained in:
parent
58334dffea
commit
ba9c351435
1 changed files with 7 additions and 0 deletions
|
|
@ -42,6 +42,13 @@ const BookmarkNavItems: FC<{
|
||||||
if (bookmarks.length === 0) {
|
if (bookmarks.length === 0) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
|
<BookmarkItem
|
||||||
|
tag={localize('com_ui_clear_all')}
|
||||||
|
data-testid="bookmark-item-clear"
|
||||||
|
handleSubmit={clear}
|
||||||
|
selected={false}
|
||||||
|
icon={<CrossCircledIcon className="size-4" />}
|
||||||
|
/>
|
||||||
<BookmarkItem
|
<BookmarkItem
|
||||||
tag={localize('com_ui_no_bookmarks')}
|
tag={localize('com_ui_no_bookmarks')}
|
||||||
data-testid="bookmark-item-no-bookmarks"
|
data-testid="bookmark-item-no-bookmarks"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue