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.

autofocus only when there's no key, remove "new" badge on tags filter

Steven Tey8773efd65c31
diff --git a/components/app/links/link-filters.tsx b/components/app/links/link-filters.tsx
index c21d9f2a4e..7e19725c6a 100644
--- a/components/app/links/link-filters.tsx
+++ b/components/app/links/link-filters.tsx
@@ -283,7 +283,6 @@ const TagsFilter = ({
className={`${collapsed ? "" : "rotate-90"} h-5 w-5 transition-all`}
/>
<h4 className="font-medium text-gray-900">Tags</h4>
- <Badge text="New" variant="blue" className="-mt-3" />
</button>
<button
onClick={addTag}
diff --git a/components/app/modals/add-edit-link-modal/index.tsx b/components/app/modals/add-edit-link-modal/index.tsx
index c80a7a40ff..3924cf3b3d 100644
--- a/components/app/modals/add-edit-link-modal/index.tsx
+++ b/components/app/modals/add-edit-link-modal/index.tsx
@@ -384,7 +384,7 @@ function AddEditLinkModal({
required
placeholder="https://github.com/steven-tey/dub"
value={url}
- autoFocus
+ autoFocus={!key}
autoComplete="off"
onChange={(e) => {
setUrlError(null);