Fix search box disappearing in Sidebar component (#592)
Co-authored-by: Jamal Johnson <you@example.com>
This commit is contained in:
parent
4f672b926a
commit
cb922d9dc6
|
@ -78,13 +78,11 @@ const Sidebar = <T,>({
|
||||||
<IconFolderPlus size={16} />
|
<IconFolderPlus size={16} />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{items?.length > 0 && (
|
<Search
|
||||||
<Search
|
placeholder={t('Search prompts...') || ''}
|
||||||
placeholder={t('Search prompts...') || ''}
|
searchTerm={searchTerm}
|
||||||
searchTerm={searchTerm}
|
onSearch={handleSearchTerm}
|
||||||
onSearch={handleSearchTerm}
|
/>
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div className="flex-grow overflow-auto">
|
<div className="flex-grow overflow-auto">
|
||||||
{items?.length > 0 && (
|
{items?.length > 0 && (
|
||||||
|
|
Loading…
Reference in New Issue