Skip to content

Commit

Permalink
remove the CommandEmpty and fix the #97
Browse files Browse the repository at this point in the history
  • Loading branch information
officialrajdeepsingh committed Feb 17, 2024
1 parent d639d03 commit c112344
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/section-blog-theme/components/Command/Command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export function SearchCommandDialog() {
<CommandInput placeholder={"Search here..."} />

<CommandList className="mx-2">
<CommandEmpty> No results found.</CommandEmpty>
{data &&
Object.entries(data).map(([key, value]) => {
if (key.includes("tag" || key.includes("tags"))) {
Expand All @@ -67,11 +66,11 @@ export function SearchCommandDialog() {
if (value.data) {
return (
<SubCommandItem
className="nx-ml-3 nx-my-2 "
key={key + value.title}
value={value.title}
className="nx-ml-3 nx-my-2"
key={key + value.title}
value={value.title}
>
<div className="nx-flex nx-w-fill nx-flex-row nx-items-center nx-justify-around">
<div onClick={()=>setOpen(false)} className="nx-flex nx-w-fill nx-flex-row nx-items-center nx-justify-around">
<TextIcon className="nx-h-5 nx-w-5 nx-mr-2" />
<Link className="nx-block nx-text-sm" href={key}>
{value.title}
Expand Down

0 comments on commit c112344

Please sign in to comment.