mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-14 08:41:04 +10:00
fix search messages
This commit is contained in:
@ -50,8 +50,14 @@ export function SearchSpotlight() {
|
|||||||
<IconSearch size={20} stroke={1.5} />
|
<IconSearch size={20} stroke={1.5} />
|
||||||
} />
|
} />
|
||||||
<Spotlight.ActionsList>
|
<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.ActionsList>
|
||||||
|
|
||||||
|
|
||||||
</Spotlight.Root>
|
</Spotlight.Root>
|
||||||
|
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user