Skip to content

Commit 276dcaa

Browse files
committed
add loading state
1 parent ea7e7f6 commit 276dcaa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/docs/src/components/search.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,11 @@ export function Search() {
215215
})}
216216
</>
217217
) : searchValue !== "" ? (
218-
<CommandEmpty>Nothing found...</CommandEmpty>
218+
isPending ? (
219+
<CommandEmpty>Searching...</CommandEmpty>
220+
) : (
221+
<CommandEmpty>Nothing found...</CommandEmpty>
222+
)
219223
) : (
220224
<CommandEmpty>Start typing...</CommandEmpty>
221225
)}

0 commit comments

Comments
 (0)