Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Command.Empty → div

Steven Tey9543107cd0bd
diff --git a/packages/ui/src/filter/filter-list.tsx b/packages/ui/src/filter/filter-list.tsx
index 548a210725..91a3e421df 100644
--- a/packages/ui/src/filter/filter-list.tsx
+++ b/packages/ui/src/filter/filter-list.tsx
@@ -1,5 +1,4 @@
import { cn, truncate } from "@dub/utils";
-import { Command } from "cmdk";
import { X } from "lucide-react";
import { AnimatePresence, motion } from "motion/react";
import Link from "next/link";
@@ -274,9 +273,9 @@ function FilterCombobox({
if (hasEmptyOptions) {
if (!search) {
return (
- <Command.Empty className="p-2 text-center text-sm text-neutral-400">
+ <div className="p-2 text-center text-sm text-neutral-400">
Start typing to search...
- </Command.Empty>
+ </div>
);
}
// When search exists and filter has empty options, the onCreate handler will show the create option
@@ -284,9 +283,9 @@ function FilterCombobox({
}
return (
- <Command.Empty className="p-2 text-center text-sm text-neutral-400">
+ <div className="p-2 text-center text-sm text-neutral-400">
No matching options
- </Command.Empty>
+ </div>
);
})();