fix search messages
This commit is contained in:
parent
e03b1f9f25
commit
b17abd644e
1 changed files with 7 additions and 1 deletions
|
|
@ -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>
|
||||||
|
|
||||||
</>
|
</>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue