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.

small updates

Steven Tey190ab20d4e39
diff --git a/apps/web/ui/links/link-controls.tsx b/apps/web/ui/links/link-controls.tsx
index 24ba76a22f..893ecb4be3 100644
--- a/apps/web/ui/links/link-controls.tsx
+++ b/apps/web/ui/links/link-controls.tsx
@@ -239,6 +239,22 @@ export function LinkControls({
className="h-9 px-2 font-medium"
/>
)}
+ {options.includes("id") && (
+ <Button
+ text="Copy Link ID"
+ variant="outline"
+ onClick={() => copyLinkId()}
+ icon={
+ copiedLinkId ? (
+ <CircleCheck className="size-4" />
+ ) : (
+ <Copy className="size-4" />
+ )
+ }
+ shortcut="I"
+ className="h-9 px-2 font-medium"
+ />
+ )}
{options.includes("duplicate") && (
<Button
text="Duplicate"
@@ -257,22 +273,6 @@ export function LinkControls({
}
/>
)}
- {options.includes("id") && (
- <Button
- text="Copy Link ID"
- variant="outline"
- onClick={() => copyLinkId()}
- icon={
- copiedLinkId ? (
- <CircleCheck className="size-4" />
- ) : (
- <Copy className="size-4" />
- )
- }
- shortcut="I"
- className="h-9 px-2 font-medium"
- />
- )}
</div>
<div className="border-t border-neutral-200" />
<div className="grid gap-px p-2">
diff --git a/packages/utils/src/constants/misc.ts b/packages/utils/src/constants/misc.ts
index d0e241aae0..33fb44967c 100644
--- a/packages/utils/src/constants/misc.ts
+++ b/packages/utils/src/constants/misc.ts
@@ -34,6 +34,6 @@ export const PAGINATION_LIMIT = 100;
export const TWO_WEEKS_IN_SECONDS = 60 * 60 * 24 * 14;
-export const THE_BEGINNING_OF_TIME = new Date("2000-01-01T00:00:00.000Z");
+export const THE_BEGINNING_OF_TIME = new Date("2010-01-01T00:00:00.000Z");
export const INFINITY_NUMBER = 1000000000;