mirror of
https://github.com/docmost/docmost.git
synced 2025-11-10 09:32:06 +10:00
fix search messages
This commit is contained in:
@ -50,8 +50,14 @@ export function SearchSpotlight() {
|
||||
<IconSearch size={20} stroke={1.5} />
|
||||
} />
|
||||
<Spotlight.ActionsList>
|
||||
{items.length > 0 ? items : <Spotlight.Empty>No results found...</Spotlight.Empty>}
|
||||
{query.length === 0 && items.length === 0 && <Spotlight.Empty>Start typing to search...</Spotlight.Empty>}
|
||||
|
||||
{query.length > 0 && items.length === 0 && <Spotlight.Empty>No results found...</Spotlight.Empty>}
|
||||
|
||||
{items.length > 0 && items}
|
||||
</Spotlight.ActionsList>
|
||||
|
||||
|
||||
</Spotlight.Root>
|
||||
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user