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.

Merge branch 'main' into pr/721

Steven Tey457da4c5c076
diff --cc apps/web/ui/analytics/tag-selector.tsx
index f69be7c9e7,2a860a4b04..1a5b67ff07
--- a/apps/web/ui/analytics/tag-selector.tsx
+++ b/apps/web/ui/analytics/tag-selector.tsx
@@@ -44,22 -45,6 +47,20 @@@ export default function TagSelector()
placeholder: "Filter tags",
}}
className="lg:w-48"
+ noItemsElement={
+ <div>
+ <h4 className="mb-2 px-2 py-2 text-sm text-gray-600">
+ No tags found in this workspace
+ </h4>
+ <button
+ type="button"
+ className="w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black"
+ onClick={() => router.push(`/${slug}?create=tag`)}
+ >
+ Add a tag
+ </button>
+ </div>
+ }
/>
- ) : (
- <div className="h-10.5 flex w-full animate-pulse items-center space-x-2 rounded-md bg-gray-200 opacity-50 md:w-48" />
);
}