Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit c112344

Browse files
remove the CommandEmpty and fix the #97
1 parent d639d03 commit c112344

File tree

1 file changed

+4
-5
lines changed
  • packages/section-blog-theme/components/Command

1 file changed

+4
-5
lines changed

packages/section-blog-theme/components/Command/Command.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export function SearchCommandDialog() {
5757
<CommandInput placeholder={"Search here..."} />
5858

5959
<CommandList className="mx-2">
60-
<CommandEmpty> No results found.</CommandEmpty>
6160
{data &&
6261
Object.entries(data).map(([key, value]) => {
6362
if (key.includes("tag" || key.includes("tags"))) {
@@ -67,11 +66,11 @@ export function SearchCommandDialog() {
6766
if (value.data) {
6867
return (
6968
<SubCommandItem
70-
className="nx-ml-3 nx-my-2 "
71-
key={key + value.title}
72-
value={value.title}
69+
className="nx-ml-3 nx-my-2"
70+
key={key + value.title}
71+
value={value.title}
7372
>
74-
<div className="nx-flex nx-w-fill nx-flex-row nx-items-center nx-justify-around">
73+
<div onClick={()=>setOpen(false)} className="nx-flex nx-w-fill nx-flex-row nx-items-center nx-justify-around">
7574
<TextIcon className="nx-h-5 nx-w-5 nx-mr-2" />
7675
<Link className="nx-block nx-text-sm" href={key}>
7776
{value.title}

0 commit comments

Comments
 (0)