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.

a few replacements, run prettier

Steven Tey1cc28855c708
diff --git a/apps/web/app/admin.dub.co/components/impersonate-user.tsx b/apps/web/app/admin.dub.co/components/impersonate-user.tsx
index 46d1c6022c..fafb1b77be 100644
--- a/apps/web/app/admin.dub.co/components/impersonate-user.tsx
+++ b/apps/web/app/admin.dub.co/components/impersonate-user.tsx
@@ -79,7 +79,7 @@ const Form = () => {
disabled={pending}
autoComplete="off"
className={cn(
- "block w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500",
+ "block w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500",
pending && "bg-gray-100",
)}
placeholder="[email protected]"
diff --git a/apps/web/app/admin.dub.co/components/impersonate-workspace.tsx b/apps/web/app/admin.dub.co/components/impersonate-workspace.tsx
index 65c1cea508..be90caefc0 100644
--- a/apps/web/app/admin.dub.co/components/impersonate-workspace.tsx
+++ b/apps/web/app/admin.dub.co/components/impersonate-workspace.tsx
@@ -52,7 +52,7 @@ const Form = () => {
disabled={pending}
autoComplete="off"
className={cn(
- "block w-full rounded-r-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500",
+ "block w-full rounded-r-md border-gray-300 text-sm text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500",
pending && "bg-gray-100",
)}
placeholder="owd"
diff --git a/apps/web/app/admin.dub.co/components/refresh-domain.tsx b/apps/web/app/admin.dub.co/components/refresh-domain.tsx
index 807537f13d..e268227c77 100644
--- a/apps/web/app/admin.dub.co/components/refresh-domain.tsx
+++ b/apps/web/app/admin.dub.co/components/refresh-domain.tsx
@@ -49,7 +49,7 @@ const Form = () => {
disabled={pending}
autoComplete="off"
className={cn(
- "block w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500",
+ "block w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500",
pending && "bg-gray-100",
)}
placeholder="acme.com"
diff --git a/apps/web/app/admin.dub.co/components/user-info.tsx b/apps/web/app/admin.dub.co/components/user-info.tsx
index 10e4ed4d0b..a393446b06 100644
--- a/apps/web/app/admin.dub.co/components/user-info.tsx
+++ b/apps/web/app/admin.dub.co/components/user-info.tsx
@@ -32,7 +32,7 @@ export default function UserInfo({ data }: { data: UserInfoProps }) {
id="email"
value={data.email}
readOnly
- className="w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
/>
<button
type="button"
diff --git a/apps/web/app/api/analytics/export/route.ts b/apps/web/app/api/analytics/export/route.ts
index 8d191c8dc0..0b43f110d2 100644
--- a/apps/web/app/api/analytics/export/route.ts
+++ b/apps/web/app/api/analytics/export/route.ts
@@ -3,10 +3,7 @@ import { DubApiError } from "@/lib/api/errors";
import { withAuth } from "@/lib/auth";
import { getDomainViaEdge } from "@/lib/planetscale";
import prisma from "@/lib/prisma";
-import {
- analyticsEndpointSchema,
- getAnalyticsQuerySchema,
-} from "@/lib/zod/schemas/analytics";
+import { getAnalyticsQuerySchema } from "@/lib/zod/schemas/analytics";
import { linkConstructor } from "@dub/utils";
import { json2csv } from "json-2-csv";
import JSZip from "jszip";
diff --git a/apps/web/app/api/cron/links/usage/utils.ts b/apps/web/app/api/cron/links/usage/utils.ts
index 9fcb1107d6..e0dd9e2324 100644
--- a/apps/web/app/api/cron/links/usage/utils.ts
+++ b/apps/web/app/api/cron/links/usage/utils.ts
@@ -1,8 +1,8 @@
import { sendLimitEmail } from "@/lib/cron";
import prisma from "@/lib/prisma";
import { WorkspaceProps } from "@/lib/types";
-import { Project, SentEmail } from "@prisma/client";
import { log } from "@dub/utils";
+import { Project, SentEmail } from "@prisma/client";
// Check if the workspace is close to the links limit and send an email to the users
export const sendLinksUsageEmail = async (
diff --git a/apps/web/app/api/domains/[domain]/primary/route.ts b/apps/web/app/api/domains/[domain]/primary/route.ts
index 0b88c8db11..8d3fad6a42 100644
--- a/apps/web/app/api/domains/[domain]/primary/route.ts
+++ b/apps/web/app/api/domains/[domain]/primary/route.ts
@@ -1,6 +1,6 @@
import { withAuth } from "@/lib/auth";
-import { NextResponse } from "next/server";
import prisma from "@/lib/prisma";
+import { NextResponse } from "next/server";
// POST /api/domains/[domain]/primary – set a domain as primary
export const POST = withAuth(
diff --git a/apps/web/app/api/domains/[domain]/route.ts b/apps/web/app/api/domains/[domain]/route.ts
index 604268029e..fe36b0bd1a 100644
--- a/apps/web/app/api/domains/[domain]/route.ts
+++ b/apps/web/app/api/domains/[domain]/route.ts
@@ -7,7 +7,6 @@ import {
} from "@/lib/api/domains";
import { withAuth } from "@/lib/auth";
import prisma from "@/lib/prisma";
-import { DUB_WORKSPACE_ID, isDubDomain } from "@dub/utils";
import { NextResponse } from "next/server";
// GET /api/domains/[domain] – get a workspace's domain
diff --git a/apps/web/app/api/links/[linkId]/transfer/route.ts b/apps/web/app/api/links/[linkId]/transfer/route.ts
index 6f7481e4ea..7192dab544 100644
--- a/apps/web/app/api/links/[linkId]/transfer/route.ts
+++ b/apps/web/app/api/links/[linkId]/transfer/route.ts
@@ -1,12 +1,10 @@
import { getAnalytics } from "@/lib/analytics";
import { DubApiError } from "@/lib/api/errors";
import { withAuth } from "@/lib/auth";
-import { qstash } from "@/lib/cron";
import prisma from "@/lib/prisma";
import { recordLink } from "@/lib/tinybird";
import { formatRedisLink, redis } from "@/lib/upstash";
import z from "@/lib/zod";
-import { APP_DOMAIN_WITH_NGROK } from "@dub/utils";
import { NextResponse } from "next/server";
const transferLinkBodySchema = z.object({
diff --git a/apps/web/app/app.dub.co/(auth)/register/page.tsx b/apps/web/app/app.dub.co/(auth)/register/page.tsx
index cd8ce05bc1..849df720b7 100644
--- a/apps/web/app/app.dub.co/(auth)/register/page.tsx
+++ b/apps/web/app/app.dub.co/(auth)/register/page.tsx
@@ -54,7 +54,7 @@ export default function RegisterPage() {
</div>
<div className="hidden h-full flex-col justify-center space-y-12 overflow-hidden border-l border-gray-200 bg-white/10 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] backdrop-blur md:flex">
<a
- href={`${HOME_DOMAIN}/features/analytics`}
+ href="https://dub.co/features/analytics"
target="_blank"
className="ml-12 h-1/2 w-[150%] rounded-xl border border-gray-200 bg-white/90 p-4 shadow-xl"
>
@@ -67,7 +67,7 @@ export default function RegisterPage() {
/>
</a>
<a
- href={`${HOME_DOMAIN}/customers`}
+ href="https://dub.co/customers"
target="_blank"
className="animate-infinite-scroll flex items-center space-x-4"
>
@@ -75,7 +75,7 @@ export default function RegisterPage() {
<BlurImage
alt={`${logo} logo`}
key={idx}
- src={`${HOME_DOMAIN}/_static/clients/${logo}.svg`}
+ src={`https://dub.co/_static/clients/${logo}.svg`}
width={520}
height={182}
className="h-12 grayscale transition-all hover:grayscale-0"
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/domains/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/domains/page-client.tsx
index 9097884f52..96fad71c55 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/domains/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/domains/page-client.tsx
@@ -16,7 +16,7 @@ import {
Popover,
TooltipContent,
} from "@dub/ui";
-import { DUB_DOMAINS, HOME_DOMAIN } from "@dub/utils";
+import { DUB_DOMAINS } from "@dub/utils";
import { ChevronDown } from "lucide-react";
import { useEffect, useState } from "react";
import { toast } from "sonner";
@@ -40,7 +40,7 @@ export default function WorkspaceDomainsClient() {
content={
<TooltipContent
title="Learn more about how to add, configure, and verify custom domains on Dub."
- href={`${HOME_DOMAIN}/help/category/custom-domains`}
+ href="https://dub.co/help/category/custom-domains"
target="_blank"
cta="Learn more"
/>
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/page-client.tsx
index 7787173cca..151b6ef472 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/page-client.tsx
@@ -12,7 +12,7 @@ import {
ProgressBar,
useRouterStuff,
} from "@dub/ui";
-import { HOME_DOMAIN, getFirstAndLastDay, nFormatter } from "@dub/utils";
+import { getFirstAndLastDay, nFormatter } from "@dub/utils";
import va from "@vercel/analytics";
import { useRouter, useSearchParams } from "next/navigation";
import { useEffect, useMemo, useState } from "react";
@@ -193,7 +193,7 @@ export default function WorkspaceBillingClient() {
{plan ? (
plan === "enterprise" || plan === "business max" ? (
<a
- href={`${HOME_DOMAIN}/enterprise`}
+ href="https://dub.co/enterprise"
target="_blank"
className="inline-flex items-center justify-center rounded-md border border-violet-600 bg-violet-600 px-4 py-2 text-sm font-medium text-white transition-all hover:bg-white hover:text-violet-600 focus:outline-none"
>
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/security/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/security/page-client.tsx
index 3c16fc61b3..44c1d6143a 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/security/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/security/page-client.tsx
@@ -9,7 +9,7 @@ import { useSAMLModal } from "@/ui/modals/saml-modal";
import { useSCIMModal } from "@/ui/modals/scim-modal";
import { ThreeDots } from "@/ui/shared/icons";
import { Button, IconMenu, Popover, TooltipContent } from "@dub/ui";
-import { HOME_DOMAIN, SAML_PROVIDERS } from "@dub/utils";
+import { SAML_PROVIDERS } from "@dub/utils";
import { FolderSync, Lock, ShieldOff } from "lucide-react";
import { useMemo, useState } from "react";
@@ -139,7 +139,7 @@ const SAMLSection = () => {
<TooltipContent
title="SAML SSO is only available on Enterprise plans. Upgrade to get started."
cta="Contact sales"
- href={`${HOME_DOMAIN}/enterprise`}
+ href="https://dub.co/enterprise"
target="_blank"
/>
),
@@ -153,7 +153,7 @@ const SAMLSection = () => {
<div className="flex items-center justify-between rounded-b-lg border-t border-gray-200 bg-gray-50 px-3 py-5 sm:px-10">
<a
- href={`${HOME_DOMAIN}/help/category/saml-sso`}
+ href="https://dub.co/help/category/saml-sso"
target="_blank"
className="text-sm text-gray-400 underline underline-offset-4 transition-colors hover:text-gray-700"
>
@@ -295,7 +295,7 @@ const SCIMSection = () => {
<TooltipContent
title="SCIM Directory Sync is only available on Enterprise plans. Upgrade to get started."
cta="Contact sales"
- href={`${HOME_DOMAIN}/enterprise`}
+ href="https://dub.co/enterprise"
target="_blank"
/>
),
@@ -309,7 +309,7 @@ const SCIMSection = () => {
<div className="flex items-center justify-between rounded-b-lg border-t border-gray-200 bg-gray-50 px-3 py-5 sm:px-10">
<a
- href={`${HOME_DOMAIN}/help/category/saml-sso`}
+ href="https://dub.co/help/category/saml-sso"
target="_blank"
className="text-sm text-gray-400 underline underline-offset-4 transition-colors hover:text-gray-700"
>
diff --git a/apps/web/app/app.dub.co/(dashboard)/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/layout.tsx
index 4d74ac3c76..1d53b8ad86 100644
--- a/apps/web/app/app.dub.co/(dashboard)/layout.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/layout.tsx
@@ -4,7 +4,7 @@ import UserDropdown from "@/ui/layout/user-dropdown";
import WorkspaceSwitcher from "@/ui/layout/workspace-switcher";
import { Divider } from "@/ui/shared/icons";
import { Logo, MaxWidthWrapper } from "@dub/ui";
-import { HOME_DOMAIN, constructMetadata } from "@dub/utils";
+import { constructMetadata } from "@dub/utils";
import Link from "next/link";
import { ReactNode, Suspense } from "react";
import Providers from "./providers";
@@ -29,14 +29,14 @@ export default function Layout({ children }: { children: ReactNode }) {
</div>
<div className="flex items-center space-x-6">
<a
- href={`${HOME_DOMAIN}/changelog`}
+ href="https://dub.co/changelog"
className="hidden text-sm text-gray-500 transition-colors hover:text-gray-700 sm:block"
target="_blank"
>
Changelog
</a>
<a
- href={`${HOME_DOMAIN}/help`}
+ href="https://dub.co/help"
className="hidden text-sm text-gray-500 transition-colors hover:text-gray-700 sm:block"
target="_blank"
>
diff --git a/apps/web/app/inspect/[domain]/[key]/page.tsx b/apps/web/app/inspect/[domain]/[key]/page.tsx
index 90dd18def1..83179ef721 100644
--- a/apps/web/app/inspect/[domain]/[key]/page.tsx
+++ b/apps/web/app/inspect/[domain]/[key]/page.tsx
@@ -8,7 +8,6 @@ import {
} from "@dub/ui";
import {
GOOGLE_FAVICON_URL,
- HOME_DOMAIN,
constructMetadata,
getApexDomain,
} from "@dub/utils";
@@ -77,7 +76,7 @@ export default async function InspectPage({
<LinkPreview defaultUrl={data.url} />
</Suspense>
<a
- href={`${HOME_DOMAIN}/tools/inspector`}
+ href="https://dub.co/tools/inspector"
rel="noreferrer"
target="_blank"
className="mx-auto mt-2 flex items-center justify-center space-x-2 text-sm text-gray-500 transition-all hover:text-black"
diff --git a/apps/web/app/password/[domain]/[key]/form.tsx b/apps/web/app/password/[domain]/[key]/form.tsx
index e104cf64b4..e6ec15ed39 100644
--- a/apps/web/app/password/[domain]/[key]/form.tsx
+++ b/apps/web/app/password/[domain]/[key]/form.tsx
@@ -51,7 +51,7 @@ export default function PasswordForm() {
className={`${
state.error
? "border-red-300 pr-10 text-red-500 placeholder-red-300 focus:border-red-500 focus:ring-red-500"
- : "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"
+ : "border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500"
} block w-full rounded-md focus:outline-none sm:text-sm`}
/>
{state.error && (
diff --git a/apps/web/lib/tinybird.ts b/apps/web/lib/tinybird.ts
index 8180b4b37c..bc4cc51587 100644
--- a/apps/web/lib/tinybird.ts
+++ b/apps/web/lib/tinybird.ts
@@ -6,13 +6,13 @@ import {
getDomainWithoutWWW,
nanoid,
} from "@dub/utils";
+import { ipAddress } from "@vercel/edge";
import { NextRequest, userAgent } from "next/server";
import { getIdentityHash } from "./edge";
import { detectBot } from "./middleware/utils";
import { conn } from "./planetscale";
import { LinkProps } from "./types";
import { ratelimit } from "./upstash";
-import { ipAddress } from "@vercel/edge";
/**
* Recording clicks with geo, ua, referer and timestamp data
diff --git a/apps/web/ui/analytics/clicks.tsx b/apps/web/ui/analytics/clicks.tsx
index 06eab6ae5d..551b9ed0a6 100644
--- a/apps/web/ui/analytics/clicks.tsx
+++ b/apps/web/ui/analytics/clicks.tsx
@@ -1,4 +1,5 @@
import { VALID_ANALYTICS_FILTERS } from "@/lib/analytics";
+import useDomains from "@/lib/swr/use-domains";
import useTags from "@/lib/swr/use-tags";
import { Chart } from "@/ui/shared/icons";
import { CountingNumbers, NumberTooltip, useRouterStuff } from "@dub/ui";
@@ -9,7 +10,6 @@ import { useSearchParams } from "next/navigation";
import { useContext } from "react";
import { AnalyticsContext } from ".";
import ClicksChart from "./clicks-chart";
-import useDomains from "@/lib/swr/use-domains";
export default function Clicks() {
const { totalClicks } = useContext(AnalyticsContext);
diff --git a/apps/web/ui/analytics/domain-selector.tsx b/apps/web/ui/analytics/domain-selector.tsx
index ed8b63f8f4..62fd7a140d 100644
--- a/apps/web/ui/analytics/domain-selector.tsx
+++ b/apps/web/ui/analytics/domain-selector.tsx
@@ -3,7 +3,7 @@ import useWorkspace from "@/lib/swr/use-workspace";
import { InputSelect, useRouterStuff } from "@dub/ui";
import { DUB_LOGO, GOOGLE_FAVICON_URL, getApexDomain } from "@dub/utils";
import { Globe } from "lucide-react";
-import { useRouter, useSearchParams } from "next/navigation";
+import { useSearchParams } from "next/navigation";
import { useContext, useMemo } from "react";
import { ModalContext } from "../modals/provider";
diff --git a/apps/web/ui/analytics/export-button.tsx b/apps/web/ui/analytics/export-button.tsx
index fbd2e82a30..c57b8cf942 100644
--- a/apps/web/ui/analytics/export-button.tsx
+++ b/apps/web/ui/analytics/export-button.tsx
@@ -1,10 +1,8 @@
import { LoadingSpinner, Tooltip, TooltipContent } from "@dub/ui";
-import zip from "jszip";
import { Download } from "lucide-react";
import { useContext, useState } from "react";
import { toast } from "sonner";
import { AnalyticsContext } from ".";
-import { HOME_DOMAIN } from "@dub/utils";
export default function ExportButton() {
const [loading, setLoading] = useState(false);
@@ -44,7 +42,7 @@ export default function ExportButton() {
<TooltipContent
title="There's no data available for download. Try adjusting your filter or date range settings."
cta="Learn more"
- href={`${HOME_DOMAIN}/help/article/how-to-export-analytics`}
+ href="https://dub.co/help/article/how-to-export-analytics"
/>
}
>
diff --git a/apps/web/ui/analytics/feedback/index.tsx b/apps/web/ui/analytics/feedback/index.tsx
index 9649a5d463..a900a28f77 100644
--- a/apps/web/ui/analytics/feedback/index.tsx
+++ b/apps/web/ui/analytics/feedback/index.tsx
@@ -48,7 +48,7 @@ export default function Feedback() {
type="email"
placeholder="[email protected]"
autoComplete="email"
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
/>
</div>
<div>
@@ -63,7 +63,7 @@ export default function Feedback() {
id="feedback"
required={true}
rows={6}
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="What other data would you like to see?"
aria-invalid="true"
/>
diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsx
index 0bd3cdeaf2..5994987f64 100644
--- a/apps/web/ui/analytics/toggle.tsx
+++ b/apps/web/ui/analytics/toggle.tsx
@@ -5,15 +5,14 @@ import {
cn,
getApexDomain,
linkConstructor,
- truncate,
} from "@dub/utils";
+import punycode from "punycode/";
import { useContext } from "react";
import { AnalyticsContext } from ".";
-import ExportButton from "./export-button";
-import SharePopover from "./share-popover";
import DateRangePicker from "./date-range-picker";
+import ExportButton from "./export-button";
import FilterBar from "./filter-bar";
-import punycode from "punycode/";
+import SharePopover from "./share-popover";
export default function Toggle() {
const { basePath, domain, key, url, admin } = useContext(AnalyticsContext);
diff --git a/apps/web/ui/domains/domain-card.tsx b/apps/web/ui/domains/domain-card.tsx
index 61cec26490..70d5380e63 100644
--- a/apps/web/ui/domains/domain-card.tsx
+++ b/apps/web/ui/domains/domain-card.tsx
@@ -21,14 +21,14 @@ import { capitalize, fetcher, nFormatter, truncate } from "@dub/utils";
import { Archive, Edit3, FileCog, QrCode } from "lucide-react";
import Link from "next/link";
import punycode from "punycode/";
+import { useRef, useState } from "react";
import useSWR, { mutate } from "swr";
import { useAddEditDomainModal } from "../modals/add-edit-domain-modal";
-import { useLinkQRModal } from "../modals/link-qr-modal";
-import DomainConfiguration from "./domain-configuration";
-import { useRef, useState } from "react";
-import { useDeleteDomainModal } from "../modals/delete-domain-modal";
import { useArchiveDomainModal } from "../modals/archive-domain-modal";
+import { useDeleteDomainModal } from "../modals/delete-domain-modal";
+import { useLinkQRModal } from "../modals/link-qr-modal";
import { usePrimaryDomainModal } from "../modals/primary-domain-modal";
+import DomainConfiguration from "./domain-configuration";
export default function DomainCard({ props }: { props: DomainProps }) {
const { id: workspaceId, slug } = useWorkspace();
diff --git a/apps/web/ui/layout/user-dropdown.tsx b/apps/web/ui/layout/user-dropdown.tsx
index 705c084b9c..1910b0633f 100644
--- a/apps/web/ui/layout/user-dropdown.tsx
+++ b/apps/web/ui/layout/user-dropdown.tsx
@@ -1,7 +1,6 @@
"use client";
import { Avatar, Badge, IconMenu, LoadingCircle, Popover } from "@dub/ui";
-import { HOME_DOMAIN } from "@dub/utils";
import va from "@vercel/analytics";
import { Crisp } from "crisp-sdk-web";
import Cookies from "js-cookie";
@@ -73,7 +72,7 @@ export default function UserDropdown() {
</p>
</Link>
<Link
- href={`${HOME_DOMAIN}/help`}
+ href="https://dub.co/help"
onClick={() => setOpenPopover(false)}
target="_blank"
className="w-full rounded-md p-2 text-sm transition-all duration-75 hover:bg-gray-100 active:bg-gray-200"
@@ -113,7 +112,7 @@ export default function UserDropdown() {
/>
</Link>
<Link
- href={`${HOME_DOMAIN}/changelog`}
+ href="https://dub.co/changelog"
target="_blank"
rel="noopener noreferrer"
onClick={() => {
diff --git a/apps/web/ui/links/link-card.tsx b/apps/web/ui/links/link-card.tsx
index 292ec824c2..b8c08af90d 100644
--- a/apps/web/ui/links/link-card.tsx
+++ b/apps/web/ui/links/link-card.tsx
@@ -23,7 +23,6 @@ import {
} from "@dub/ui";
import { LinkifyTooltipContent } from "@dub/ui/src/tooltip";
import {
- HOME_DOMAIN,
cn,
fetcher,
getApexDomain,
@@ -424,7 +423,7 @@ export default function LinkCard({
<SimpleTooltipContent
title="This link is cloaked. Your users will only see the short link in the browser address bar."
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/link-cloaking`}
+ href="https://dub.co/help/article/link-cloaking"
/>
}
>
@@ -437,7 +436,7 @@ export default function LinkCard({
<SimpleTooltipContent
title="This link is password-protected."
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/password-protected-links`}
+ href="https://dub.co/help/article/password-protected-links"
/>
}
>
diff --git a/apps/web/ui/modals/add-edit-domain-modal/domain-input.tsx b/apps/web/ui/modals/add-edit-domain-modal/domain-input.tsx
index fa3c5b9700..606f561053 100644
--- a/apps/web/ui/modals/add-edit-domain-modal/domain-input.tsx
+++ b/apps/web/ui/modals/add-edit-domain-modal/domain-input.tsx
@@ -3,7 +3,6 @@ import { Label, RadioGroup, RadioGroupItem, useMediaQuery } from "@dub/ui";
import { InfoTooltip } from "@dub/ui/src/tooltip";
import {
FADE_IN_ANIMATION_SETTINGS,
- HOME_DOMAIN,
cn,
getApexDomain,
getSubdomain,
@@ -64,7 +63,7 @@ export default function DomainInput({
required
autoComplete="off"
placeholder="subdomain"
- className="w-1/3 rounded-l-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="w-1/3 rounded-l-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
value={getSubdomain(domain, apexDomain) || ""}
onChange={(e) => {
setData({
@@ -89,7 +88,7 @@ export default function DomainInput({
autoComplete="off"
pattern="[a-zA-Z0-9\-.]+"
className={cn(
- "block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",
+ "block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",
{
"border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500":
domainError,
@@ -175,7 +174,7 @@ export default function DomainInput({
<p className="mt-2 text-sm text-gray-500">
Want to set up Dub.co to handle redirects on a subpath instead?{" "}
<a
- href={`${HOME_DOMAIN}/help/article/how-to-use-dub-with-subpath`}
+ href="https://dub.co/help/article/how-to-use-dub-with-subpath"
target="_blank"
className="underline"
>
diff --git a/apps/web/ui/modals/add-edit-domain-modal/index.tsx b/apps/web/ui/modals/add-edit-domain-modal/index.tsx
index 1a56ab1d3f..8a86948c1e 100644
--- a/apps/web/ui/modals/add-edit-domain-modal/index.tsx
+++ b/apps/web/ui/modals/add-edit-domain-modal/index.tsx
@@ -13,11 +13,7 @@ import {
TooltipContent,
useRouterStuff,
} from "@dub/ui";
-import {
- FADE_IN_ANIMATION_SETTINGS,
- HOME_DOMAIN,
- capitalize,
-} from "@dub/utils";
+import { FADE_IN_ANIMATION_SETTINGS, capitalize } from "@dub/utils";
import { motion } from "framer-motion";
import { ChevronRight } from "lucide-react";
import { useParams, useRouter } from "next/navigation";
@@ -224,7 +220,7 @@ function AddEditDomainModal({
type="url"
name="target"
id="target"
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="https://example.com"
value={target}
onChange={(e) => setData({ ...data, target: e.target.value })}
@@ -286,7 +282,7 @@ function AddEditDomainModal({
<SimpleTooltipContent
title="Redirect users to a specific URL when any link under this domain has expired."
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/link-expiration#setting-a-default-expiration-url-for-all-links-under-a-domain`}
+ href="https://dub.co/help/article/link-expiration#setting-a-default-expiration-url-for-all-links-under-a-domain"
/>
}
/>
@@ -319,7 +315,7 @@ function AddEditDomainModal({
type="url"
name="expiredUrl"
id="expiredUrl"
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="https://yourwebsite.com"
value={expiredUrl}
onChange={(e) =>
@@ -346,7 +342,7 @@ function AddEditDomainModal({
type="url"
name="placeholder"
id="placeholder"
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="https://dub.co/help/article/what-is-dub"
value={placeholder}
onChange={(e) =>
diff --git a/apps/web/ui/modals/add-edit-link-modal/android-section.tsx b/apps/web/ui/modals/add-edit-link-modal/android-section.tsx
index 0a6046c9b1..37c2e7ab34 100644
--- a/apps/web/ui/modals/add-edit-link-modal/android-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/android-section.tsx
@@ -7,7 +7,7 @@ import {
TooltipContent,
useRouterStuff,
} from "@dub/ui";
-import { FADE_IN_ANIMATION_SETTINGS, HOME_DOMAIN } from "@dub/utils";
+import { FADE_IN_ANIMATION_SETTINGS } from "@dub/utils";
import { motion } from "framer-motion";
import { Dispatch, SetStateAction, useEffect, useState } from "react";
@@ -49,7 +49,7 @@ export default function AndroidSection({
<SimpleTooltipContent
title="Redirect your Android users to a different link."
cta="Learn more about device targeting."
- href={`${HOME_DOMAIN}/help/article/device-targeting`}
+ href="https://dub.co/help/article/device-targeting"
/>
}
/>
@@ -74,7 +74,7 @@ export default function AndroidSection({
}),
}
: {
- href: `${HOME_DOMAIN}/pricing`,
+ href: "https://dub.co/pricing",
})}
/>
),
@@ -96,7 +96,7 @@ export default function AndroidSection({
onChange={(e) => {
setData({ ...data, android: e.target.value });
}}
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
aria-invalid="true"
/>
</motion.div>
diff --git a/apps/web/ui/modals/add-edit-link-modal/cloaking-section.tsx b/apps/web/ui/modals/add-edit-link-modal/cloaking-section.tsx
index 7ad577ac47..fa0cf6618b 100644
--- a/apps/web/ui/modals/add-edit-link-modal/cloaking-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/cloaking-section.tsx
@@ -9,7 +9,7 @@ import {
TooltipContent,
useRouterStuff,
} from "@dub/ui";
-import { FADE_IN_ANIMATION_SETTINGS, HOME_DOMAIN, fetcher } from "@dub/utils";
+import { FADE_IN_ANIMATION_SETTINGS, fetcher } from "@dub/utils";
import { motion } from "framer-motion";
import { Dispatch, SetStateAction, useEffect, useState } from "react";
import useSWR from "swr";
@@ -49,7 +49,7 @@ export default function CloakingSection({
<SimpleTooltipContent
title="Mask your destination URL so your users only see the short link in the browser address bar."
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/link-cloaking`}
+ href="https://dub.co/help/article/link-cloaking"
/>
}
/>
@@ -74,7 +74,7 @@ export default function CloakingSection({
}),
}
: {
- href: `${HOME_DOMAIN}/pricing`,
+ href: "https://dub.co/pricing",
})}
/>
),
diff --git a/apps/web/ui/modals/add-edit-link-modal/comments-section.tsx b/apps/web/ui/modals/add-edit-link-modal/comments-section.tsx
index 47e7bd3133..3e42dc1aaf 100644
--- a/apps/web/ui/modals/add-edit-link-modal/comments-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/comments-section.tsx
@@ -1,6 +1,6 @@
import { LinkProps } from "@/lib/types";
import { InfoTooltip, SimpleTooltipContent, Switch } from "@dub/ui";
-import { FADE_IN_ANIMATION_SETTINGS, HOME_DOMAIN } from "@dub/utils";
+import { FADE_IN_ANIMATION_SETTINGS } from "@dub/utils";
import { motion } from "framer-motion";
import { Dispatch, SetStateAction, useEffect, useState } from "react";
import TextareaAutosize from "react-textarea-autosize";
@@ -39,7 +39,7 @@ export default function CommentsSection({
<SimpleTooltipContent
title="Use comments to add context to your short links – for you and your team."
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/link-comments`}
+ href="https://dub.co/help/article/link-comments"
/>
}
/>
@@ -51,7 +51,7 @@ export default function CommentsSection({
<TextareaAutosize
name="comments"
minRows={3}
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="Add comments"
value={comments || ""}
onChange={(e) => {
diff --git a/apps/web/ui/modals/add-edit-link-modal/expiration-section.tsx b/apps/web/ui/modals/add-edit-link-modal/expiration-section.tsx
index 10410c84fc..a8e50e11d2 100644
--- a/apps/web/ui/modals/add-edit-link-modal/expiration-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/expiration-section.tsx
@@ -10,7 +10,6 @@ import {
import { TooltipContent } from "@dub/ui/src/tooltip";
import {
FADE_IN_ANIMATION_SETTINGS,
- HOME_DOMAIN,
formatDateTime,
getDateTimeLocal,
parseDateTime,
@@ -57,7 +56,7 @@ export default function ExpirationSection({
<SimpleTooltipContent
title="Set an expiration date for your links – after which it won't be accessible."
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/link-expiration`}
+ href="https://dub.co/help/article/link-expiration"
/>
}
/>
@@ -82,7 +81,7 @@ export default function ExpirationSection({
}),
}
: {
- href: `${HOME_DOMAIN}/pricing`,
+ href: "https://dub.co/pricing",
})}
/>
),
@@ -138,7 +137,7 @@ export default function ExpirationSection({
<SimpleTooltipContent
title="Redirect users to a specific URL when the link has expired."
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/link-expiration#setting-a-custom-expiration-url`}
+ href="https://dub.co/help/article/link-expiration#setting-a-custom-expiration-url"
/>
}
/>
@@ -160,7 +159,7 @@ export default function ExpirationSection({
/>
</div>
<a
- href={`${HOME_DOMAIN}/help/article/link-expiration#setting-a-default-expiration-url-for-all-links-under-a-domain`}
+ href="https://dub.co/help/article/link-expiration#setting-a-default-expiration-url-for-all-links-under-a-domain"
target="_blank"
className="group mt-3 flex items-center text-sm text-gray-500 hover:text-gray-700"
>
diff --git a/apps/web/ui/modals/add-edit-link-modal/geo-section.tsx b/apps/web/ui/modals/add-edit-link-modal/geo-section.tsx
index f8f292d8e9..581cba13bf 100644
--- a/apps/web/ui/modals/add-edit-link-modal/geo-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/geo-section.tsx
@@ -7,7 +7,7 @@ import {
TooltipContent,
useRouterStuff,
} from "@dub/ui";
-import { COUNTRIES, FADE_IN_ANIMATION_SETTINGS, HOME_DOMAIN } from "@dub/utils";
+import { COUNTRIES, FADE_IN_ANIMATION_SETTINGS } from "@dub/utils";
import { motion } from "framer-motion";
import { Trash } from "lucide-react";
import { Dispatch, SetStateAction, useEffect, useState } from "react";
@@ -58,7 +58,7 @@ export default function GeoSection({
<SimpleTooltipContent
title="Redirect your users to different links based on their location."
cta="Learn more about geo targeting."
- href={`${HOME_DOMAIN}/help/article/geo-targeting`}
+ href="https://dub.co/help/article/geo-targeting"
/>
}
/>
@@ -83,7 +83,7 @@ export default function GeoSection({
}),
}
: {
- href: `${HOME_DOMAIN}/pricing`,
+ href: "https://dub.co/pricing",
})}
/>
),
@@ -168,7 +168,7 @@ const GeoSelector = ({
name="geo-url"
required
autoComplete="off"
- className="block w-full rounded-r-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-r-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
value={url}
placeholder="URL"
onChange={(e) => {
diff --git a/apps/web/ui/modals/add-edit-link-modal/index.tsx b/apps/web/ui/modals/add-edit-link-modal/index.tsx
index e67f9a278c..8b73e6ae78 100644
--- a/apps/web/ui/modals/add-edit-link-modal/index.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/index.tsx
@@ -425,7 +425,7 @@ function AddEditLinkModal({
className={`${
urlError
? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"
- : "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"
+ : "border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500"
} block w-full rounded-md focus:outline-none sm:text-sm`}
aria-invalid="true"
/>
@@ -509,7 +509,7 @@ function AddEditLinkModal({
disabled={props && lockKey}
autoComplete="off"
className={cn(
- "block w-full rounded-r-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",
+ "block w-full rounded-r-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",
{
"border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500":
keyError,
diff --git a/apps/web/ui/modals/add-edit-link-modal/ios-section.tsx b/apps/web/ui/modals/add-edit-link-modal/ios-section.tsx
index 8aff9d9527..76805405ad 100644
--- a/apps/web/ui/modals/add-edit-link-modal/ios-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/ios-section.tsx
@@ -7,7 +7,7 @@ import {
TooltipContent,
useRouterStuff,
} from "@dub/ui";
-import { FADE_IN_ANIMATION_SETTINGS, HOME_DOMAIN } from "@dub/utils";
+import { FADE_IN_ANIMATION_SETTINGS } from "@dub/utils";
import { motion } from "framer-motion";
import { Dispatch, SetStateAction, useEffect, useState } from "react";
@@ -47,7 +47,7 @@ export default function IOSSection({
<SimpleTooltipContent
title="Redirect your iOS users to a different link."
cta="Learn more about device targeting."
- href={`${HOME_DOMAIN}/help/article/device-targeting`}
+ href="https://dub.co/help/article/device-targeting"
/>
}
/>
@@ -72,7 +72,7 @@ export default function IOSSection({
}),
}
: {
- href: `${HOME_DOMAIN}/pricing`,
+ href: "https://dub.co/pricing",
})}
/>
),
@@ -94,7 +94,7 @@ export default function IOSSection({
onChange={(e) => {
setData({ ...data, ios: e.target.value });
}}
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
aria-invalid="true"
/>
</motion.div>
diff --git a/apps/web/ui/modals/add-edit-link-modal/og-section.tsx b/apps/web/ui/modals/add-edit-link-modal/og-section.tsx
index ac2347cc45..f324da44cf 100644
--- a/apps/web/ui/modals/add-edit-link-modal/og-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/og-section.tsx
@@ -13,7 +13,7 @@ import {
useRouterStuff,
} from "@dub/ui";
import { TooltipContent } from "@dub/ui/src/tooltip";
-import { FADE_IN_ANIMATION_SETTINGS, HOME_DOMAIN } from "@dub/utils";
+import { FADE_IN_ANIMATION_SETTINGS } from "@dub/utils";
import { motion } from "framer-motion";
import { Link2 } from "lucide-react";
import { Dispatch, SetStateAction, useEffect, useState } from "react";
@@ -87,7 +87,7 @@ export default function OGSection({
<SimpleTooltipContent
title="Customize how your links look when shared on social media."
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/custom-social-media-cards`}
+ href="https://dub.co/help/article/custom-social-media-cards"
/>
}
/>
@@ -112,7 +112,7 @@ export default function OGSection({
}),
}
: {
- href: `${HOME_DOMAIN}/pricing`,
+ href: "https://dub.co/pricing",
})}
/>
),
@@ -277,7 +277,7 @@ export default function OGSection({
id="title"
minRows={3}
maxLength={120}
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder={`${process.env.NEXT_PUBLIC_APP_NAME} - open-source link management infrastructure.`}
value={title || ""}
onChange={(e) => {
@@ -308,7 +308,7 @@ export default function OGSection({
id="description"
minRows={3}
maxLength={240}
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder={`${process.env.NEXT_PUBLIC_APP_NAME} is open-source link management infrastructure for modern marketing teams.`}
value={description || ""}
onChange={(e) => {
diff --git a/apps/web/ui/modals/add-edit-link-modal/password-section.tsx b/apps/web/ui/modals/add-edit-link-modal/password-section.tsx
index 5e6f6cc166..330bef36ec 100644
--- a/apps/web/ui/modals/add-edit-link-modal/password-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/password-section.tsx
@@ -8,7 +8,7 @@ import {
useRouterStuff,
} from "@dub/ui";
import { TooltipContent } from "@dub/ui/src/tooltip";
-import { FADE_IN_ANIMATION_SETTINGS, HOME_DOMAIN } from "@dub/utils";
+import { FADE_IN_ANIMATION_SETTINGS } from "@dub/utils";
import { motion } from "framer-motion";
import { Dispatch, SetStateAction, useEffect, useState } from "react";
@@ -53,7 +53,7 @@ export default function PasswordSection({
<SimpleTooltipContent
title="Restrict access to your short links by encrypting it with a password."
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/password-protected-links`}
+ href="https://dub.co/help/article/password-protected-links"
/>
}
/>
@@ -78,7 +78,7 @@ export default function PasswordSection({
}),
}
: {
- href: `${HOME_DOMAIN}/pricing`,
+ href: "https://dub.co/pricing",
})}
/>
),
@@ -95,7 +95,7 @@ export default function PasswordSection({
name="password"
id="password"
type={showPassword ? "text" : "password"}
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
value={password || ""}
placeholder="Enter password"
onChange={(e) => {
diff --git a/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx b/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx
index e50c5a0c32..df025b5f81 100644
--- a/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx
@@ -3,7 +3,6 @@ import useWorkspace from "@/lib/swr/use-workspace";
import { LinkWithTagsProps } from "@/lib/types";
import TagBadge from "@/ui/links/tag-badge";
import { LoadingCircle, SimpleTooltipContent, Tooltip } from "@dub/ui";
-import { HOME_DOMAIN } from "@dub/utils";
import { Command, useCommandState } from "cmdk";
import { Check, ChevronDown, Tag, X } from "lucide-react";
import { Dispatch, SetStateAction, useEffect, useRef, useState } from "react";
@@ -116,7 +115,7 @@ export default function TagsSection({
<SimpleTooltipContent
title={`Tags are used to organize your links in your ${process.env.NEXT_PUBLIC_APP_NAME} dashboard.`}
cta="Learn more about tags."
- href={`${HOME_DOMAIN}/help/article/how-to-use-tags`}
+ href="https://dub.co/help/article/how-to-use-tags"
/>
}
>
diff --git a/apps/web/ui/modals/add-edit-link-modal/unsplash-search.tsx b/apps/web/ui/modals/add-edit-link-modal/unsplash-search.tsx
index 9a784bf02f..2bd064646f 100644
--- a/apps/web/ui/modals/add-edit-link-modal/unsplash-search.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/unsplash-search.tsx
@@ -41,7 +41,7 @@ export default function UnsplashSearch({
autoComplete="off"
value={search}
onChange={(e) => setSearch(e.target.value)}
- className="block w-full rounded-md border-gray-300 py-1 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 py-1 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
/>
</div>
{data ? (
diff --git a/apps/web/ui/modals/add-edit-link-modal/utm-section.tsx b/apps/web/ui/modals/add-edit-link-modal/utm-section.tsx
index 5ec031f6b6..708e7336c1 100644
--- a/apps/web/ui/modals/add-edit-link-modal/utm-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/utm-section.tsx
@@ -2,7 +2,6 @@ import { LinkProps } from "@/lib/types";
import { InfoTooltip, SimpleTooltipContent, Switch } from "@dub/ui";
import {
FADE_IN_ANIMATION_SETTINGS,
- HOME_DOMAIN,
constructURLFromUTMParams,
getParamsFromURL,
getUrlWithoutUTMParams,
@@ -65,7 +64,7 @@ export default function UTMSection({
<SimpleTooltipContent
title="Add UTM parameters to your short links for conversion tracking."
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/utm-builder`}
+ href="https://dub.co/help/article/utm-builder"
/>
}
/>
@@ -86,7 +85,7 @@ export default function UTMSection({
disabled={!isValidUrl}
className={`${
isValidUrl ? "" : "cursor-not-allowed bg-gray-100"
- } block w-full rounded-r-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm`}
+ } block w-full rounded-r-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm`}
placeholder={examples}
value={params[key] || ""}
onChange={(e) => {
diff --git a/apps/web/ui/modals/add-edit-tag-modal.tsx b/apps/web/ui/modals/add-edit-tag-modal.tsx
index 955154b94d..7e6ad6d10f 100644
--- a/apps/web/ui/modals/add-edit-tag-modal.tsx
+++ b/apps/web/ui/modals/add-edit-tag-modal.tsx
@@ -13,7 +13,7 @@ import {
useMediaQuery,
useRouterStuff,
} from "@dub/ui";
-import { HOME_DOMAIN, capitalize, cn } from "@dub/utils";
+import { capitalize, cn } from "@dub/utils";
import va from "@vercel/analytics";
import {
Dispatch,
@@ -88,7 +88,7 @@ function AddEditTagModal({
<p className="text-sm text-gray-500">
Use tags to organize your links.{" "}
<a
- href={`${HOME_DOMAIN}/help/article/how-to-use-tags#what-is-a-tag`}
+ href="https://dub.co/help/article/how-to-use-tags#what-is-a-tag"
target="_blank"
rel="noopener noreferrer"
className="underline underline-offset-4 hover:text-gray-800"
@@ -151,7 +151,7 @@ function AddEditTagModal({
required
autoFocus={!isMobile}
autoComplete="off"
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="New Tag"
value={name}
onChange={(e) => {
diff --git a/apps/web/ui/modals/add-workspace-modal.tsx b/apps/web/ui/modals/add-workspace-modal.tsx
index a993844024..6dbd95ed6d 100644
--- a/apps/web/ui/modals/add-workspace-modal.tsx
+++ b/apps/web/ui/modals/add-workspace-modal.tsx
@@ -8,11 +8,7 @@ import {
useMediaQuery,
useRouterStuff,
} from "@dub/ui";
-import {
- FADE_IN_ANIMATION_SETTINGS,
- HOME_DOMAIN,
- generateDomainFromName,
-} from "@dub/utils";
+import { FADE_IN_ANIMATION_SETTINGS, generateDomainFromName } from "@dub/utils";
import slugify from "@sindresorhus/slugify";
import va from "@vercel/analytics";
import { motion } from "framer-motion";
@@ -112,7 +108,7 @@ function AddWorkspaceModalHelper({
<Logo />
<h3 className="text-lg font-medium">Create a new workspace</h3>
<a
- href={`${HOME_DOMAIN}/help/article/what-is-a-workspace`}
+ href="https://dub.co/help/article/what-is-a-workspace"
target="_blank"
className="-translate-y-2 text-center text-xs text-gray-500 underline underline-offset-4 hover:text-gray-800"
>
@@ -181,7 +177,7 @@ function AddWorkspaceModalHelper({
required
autoFocus={!isMobile}
autoComplete="off"
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="Acme, Inc."
value={name}
onChange={(e) => {
@@ -215,7 +211,7 @@ function AddWorkspaceModalHelper({
className={`${
slugError
? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"
- : "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"
+ : "border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500"
} block w-full rounded-r-md focus:outline-none sm:text-sm`}
placeholder="acme"
value={slug}
diff --git a/apps/web/ui/modals/delete-account-modal.tsx b/apps/web/ui/modals/delete-account-modal.tsx
index b166c9002d..a2370b4524 100644
--- a/apps/web/ui/modals/delete-account-modal.tsx
+++ b/apps/web/ui/modals/delete-account-modal.tsx
@@ -88,7 +88,7 @@ function DeleteAccountModal({
required
autoFocus={false}
autoComplete="off"
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
/>
</div>
</div>
diff --git a/apps/web/ui/modals/delete-link-modal.tsx b/apps/web/ui/modals/delete-link-modal.tsx
index 12698c3892..dd2c4c61c0 100644
--- a/apps/web/ui/modals/delete-link-modal.tsx
+++ b/apps/web/ui/modals/delete-link-modal.tsx
@@ -94,7 +94,7 @@ function DeleteLinkModal({
required
autoFocus={!isMobile}
autoComplete="off"
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
/>
</div>
</div>
diff --git a/apps/web/ui/modals/delete-workspace-modal.tsx b/apps/web/ui/modals/delete-workspace-modal.tsx
index 82929b6e02..d575d5403f 100644
--- a/apps/web/ui/modals/delete-workspace-modal.tsx
+++ b/apps/web/ui/modals/delete-workspace-modal.tsx
@@ -93,7 +93,7 @@ function DeleteWorkspaceModal({
pattern={slug}
disabled={!isOwner}
className={cn(
- "block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",
+ "block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",
{
"cursor-not-allowed bg-gray-100": !isOwner,
},
@@ -120,7 +120,7 @@ function DeleteWorkspaceModal({
autoComplete="off"
disabled={!isOwner}
className={cn(
- "block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",
+ "block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",
{
"cursor-not-allowed bg-gray-100": !isOwner,
},
diff --git a/apps/web/ui/modals/google-oauth-modal.tsx b/apps/web/ui/modals/google-oauth-modal.tsx
index 061abd4abd..dee4c0f29f 100644
--- a/apps/web/ui/modals/google-oauth-modal.tsx
+++ b/apps/web/ui/modals/google-oauth-modal.tsx
@@ -1,5 +1,4 @@
import { Button, Google, Logo, Modal } from "@dub/ui";
-import { HOME_DOMAIN } from "@dub/utils";
import Cookies from "js-cookie";
import { signIn } from "next-auth/react";
import {
@@ -32,7 +31,7 @@ function GoogleOauthModal({
account with Google.{" "}
<a
className="underline underline-offset-4 transition-colors hover:text-black"
- href={`${HOME_DOMAIN}/changelog/sign-in-with-google`}
+ href="https://dub.co/changelog/sign-in-with-google"
target="_blank"
rel="noopener noreferrer"
>
diff --git a/apps/web/ui/modals/import-bitly-modal.tsx b/apps/web/ui/modals/import-bitly-modal.tsx
index ee54de65c5..18cb150908 100644
--- a/apps/web/ui/modals/import-bitly-modal.tsx
+++ b/apps/web/ui/modals/import-bitly-modal.tsx
@@ -9,7 +9,7 @@ import {
Tooltip,
useRouterStuff,
} from "@dub/ui";
-import { HOME_DOMAIN, fetcher } from "@dub/utils";
+import { fetcher } from "@dub/utils";
import { ArrowRight, ServerOff } from "lucide-react";
import { useParams, useRouter, useSearchParams } from "next/navigation";
import {
@@ -250,7 +250,7 @@ function ImportBitlyModal({
}}
/>
<a
- href={`${HOME_DOMAIN}/help/article/migrating-from-bitly`}
+ href="https://dub.co/help/article/migrating-from-bitly"
target="_blank"
className="text-center text-xs text-gray-500 underline underline-offset-4 transition-colors hover:text-gray-800"
>
diff --git a/apps/web/ui/modals/import-short-modal.tsx b/apps/web/ui/modals/import-short-modal.tsx
index 92ae58b6ad..da28fc56c0 100644
--- a/apps/web/ui/modals/import-short-modal.tsx
+++ b/apps/web/ui/modals/import-short-modal.tsx
@@ -11,7 +11,7 @@ import {
useMediaQuery,
useRouterStuff,
} from "@dub/ui";
-import { HOME_DOMAIN, fetcher, nFormatter } from "@dub/utils";
+import { fetcher, nFormatter } from "@dub/utils";
import { ArrowRight } from "lucide-react";
import { useRouter, useSearchParams } from "next/navigation";
import {
@@ -231,7 +231,7 @@ function ImportShortModal({
<SimpleTooltipContent
title={`Your Short.io API Key can be found in your Short.io account under "Integrations & API".`}
cta="Read the guide."
- href={`${HOME_DOMAIN}/help/article/migrating-from-short`}
+ href="https://dub.co/help/article/migrating-from-short"
/>
}
/>
diff --git a/apps/web/ui/modals/invite-teammate-modal.tsx b/apps/web/ui/modals/invite-teammate-modal.tsx
index 31078a4485..1814e57bb6 100644
--- a/apps/web/ui/modals/invite-teammate-modal.tsx
+++ b/apps/web/ui/modals/invite-teammate-modal.tsx
@@ -87,7 +87,7 @@ function InviteTeammateModal({
required
value={email}
onChange={(e) => setEmail(e.target.value)}
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
/>
</div>
</div>
diff --git a/apps/web/ui/modals/link-qr-modal.tsx b/apps/web/ui/modals/link-qr-modal.tsx
index 85d4fd648e..f1c1d74494 100644
--- a/apps/web/ui/modals/link-qr-modal.tsx
+++ b/apps/web/ui/modals/link-qr-modal.tsx
@@ -19,7 +19,6 @@ import {
import {
APP_HOSTNAMES,
FADE_IN_ANIMATION_SETTINGS,
- HOME_DOMAIN,
getApexDomain,
linkConstructor,
} from "@dub/utils";
@@ -331,7 +330,7 @@ function AdvancedSettings({
<SimpleTooltipContent
title=""
cta="How to update my QR Code logo?"
- href={`${HOME_DOMAIN}/help/article/custom-qr-codes`}
+ href="https://dub.co/help/article/custom-qr-codes"
/>
}
/>
@@ -368,7 +367,7 @@ function AdvancedSettings({
});
},
}
- : { href: `${HOME_DOMAIN}/pricing` })}
+ : { href: "https://dub.co/pricing" })}
/>
}
>
@@ -421,7 +420,7 @@ function AdvancedSettings({
onChange={(color) => setFgColor(color)}
prefixed
style={{ borderColor: qrData.fgColor }}
- className="block w-full rounded-r-md border-2 border-l-0 pl-3 text-gray-900 placeholder-gray-300 focus:outline-none focus:ring-black sm:text-sm"
+ className="block w-full rounded-r-md border-2 border-l-0 pl-3 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-black sm:text-sm"
/>
</div>
</div>
diff --git a/apps/web/ui/modals/primary-domain-modal.tsx b/apps/web/ui/modals/primary-domain-modal.tsx
index d0b676d96b..f6ef05ca6c 100644
--- a/apps/web/ui/modals/primary-domain-modal.tsx
+++ b/apps/web/ui/modals/primary-domain-modal.tsx
@@ -1,7 +1,6 @@
import useWorkspace from "@/lib/swr/use-workspace";
import { DomainProps } from "@/lib/types";
import { Button, Modal } from "@dub/ui";
-import { HOME_DOMAIN } from "@dub/utils";
import {
Dispatch,
SetStateAction,
@@ -56,7 +55,7 @@ function PrimaryDomainModal({
Setting this domain as primary will make it the default domain in the
link creation modal, as well as in the API.{" "}
<a
- href={`${HOME_DOMAIN}/help/article/how-to-set-primary-domain`}
+ href="https://dub.co/help/article/how-to-set-primary-domain"
target="_blank"
className="text-gray-500 underline underline-offset-4 hover:text-gray-800"
>
diff --git a/apps/web/ui/modals/provider.tsx b/apps/web/ui/modals/provider.tsx
index 008c608cda..3602415ac7 100644
--- a/apps/web/ui/modals/provider.tsx
+++ b/apps/web/ui/modals/provider.tsx
@@ -21,8 +21,8 @@ import {
} from "react";
import { toast } from "sonner";
import { mutate } from "swr";
-import { useImportRebrandlyModal } from "./import-rebrandly-modal";
import { useAddEditTagModal } from "./add-edit-tag-modal";
+import { useImportRebrandlyModal } from "./import-rebrandly-modal";
export const ModalContext = createContext<{
setShowAddWorkspaceModal: Dispatch<SetStateAction<boolean>>;
diff --git a/apps/web/ui/modals/saml-modal.tsx b/apps/web/ui/modals/saml-modal.tsx
index 37d04e01c9..70ef916e5b 100644
--- a/apps/web/ui/modals/saml-modal.tsx
+++ b/apps/web/ui/modals/saml-modal.tsx
@@ -8,7 +8,7 @@ import {
SimpleTooltipContent,
useMediaQuery,
} from "@dub/ui";
-import { HOME_DOMAIN, SAML_PROVIDERS } from "@dub/utils";
+import { SAML_PROVIDERS } from "@dub/utils";
import { Check, Lock, UploadCloud } from "lucide-react";
import {
Dispatch,
@@ -119,7 +119,7 @@ function SAMLModal({
</select>
{currentProvider ? (
<a
- href={`${HOME_DOMAIN}/help/article/${selectedProvider}-saml`}
+ href={`https://dub.co/help/article/${selectedProvider}-saml`}
target="_blank"
className="ml-2 mt-2 block text-sm text-gray-500 underline"
>
@@ -127,7 +127,7 @@ function SAMLModal({
</a>
) : (
<a
- href={`${HOME_DOMAIN}/help/category/saml-sso`}
+ href="https://dub.co/help/category/saml-sso"
target="_blank"
className="ml-2 mt-2 block text-sm text-gray-500 underline"
>
@@ -148,7 +148,7 @@ function SAMLModal({
<SimpleTooltipContent
title={`Your ${currentProvider.samlModalCopy} is the URL to your SAML provider's metadata.`}
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/${selectedProvider}-saml`}
+ href={`https://dub.co/help/article/${selectedProvider}-saml`}
/>
}
/>
@@ -203,7 +203,7 @@ function SAMLModal({
<SimpleTooltipContent
title={`Your ${currentProvider.samlModalCopy} is the URL to your SAML provider's metadata.`}
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/${selectedProvider}-saml#step-4-copy-the-metadata-url`}
+ href={`https://dub.co/help/article/${selectedProvider}-saml#step-4-copy-the-metadata-url`}
/>
}
/>
diff --git a/apps/web/ui/modals/scim-modal.tsx b/apps/web/ui/modals/scim-modal.tsx
index 6df38b683f..27a4e2c912 100644
--- a/apps/web/ui/modals/scim-modal.tsx
+++ b/apps/web/ui/modals/scim-modal.tsx
@@ -10,7 +10,7 @@ import {
SimpleTooltipContent,
Tick,
} from "@dub/ui";
-import { HOME_DOMAIN, SAML_PROVIDERS } from "@dub/utils";
+import { SAML_PROVIDERS } from "@dub/utils";
import { Eye, EyeOff, FolderSync, RefreshCcw } from "lucide-react";
import {
Dispatch,
@@ -113,7 +113,7 @@ function SCIMModal({
<SimpleTooltipContent
title="Your directory provider is the IDP you use to manage your users."
cta={selectedProvider ? "Read the guide." : "Learn more."}
- href={`${HOME_DOMAIN}/help/${
+ href={`https://dub.co/help/${
currentProvider
? `article/${currentProvider.saml}-scim`
: "category/saml-sso"
@@ -147,7 +147,7 @@ function SCIMModal({
</select>
{currentProvider && (
<a
- href={`${HOME_DOMAIN}/help/article/${currentProvider.saml}-scim`}
+ href={`https://dub.co/help/article/${currentProvider.saml}-scim`}
target="_blank"
className="ml-2 mt-2 block text-sm text-gray-500 underline"
>
@@ -169,7 +169,7 @@ function SCIMModal({
<SimpleTooltipContent
title="Your directory provider is the IDP you use to manage your users."
cta="Read the guide."
- href={`${HOME_DOMAIN}/help/article/${currentProvider.saml}-scim`}
+ href={`https://dub.co/help/article/${currentProvider.saml}-scim`}
/>
}
/>
@@ -211,7 +211,7 @@ function SCIMModal({
<SimpleTooltipContent
title="Your directory provider is the IDP you use to manage your users."
cta="Read the guide."
- href={`${HOME_DOMAIN}/help/article/${currentProvider.saml}-scim`}
+ href={`https://dub.co/help/article/${currentProvider.saml}-scim`}
/>
}
/>
diff --git a/apps/web/ui/modals/upgrade-plan-modal.tsx b/apps/web/ui/modals/upgrade-plan-modal.tsx
index 4afc29bf75..d9881faf4f 100644
--- a/apps/web/ui/modals/upgrade-plan-modal.tsx
+++ b/apps/web/ui/modals/upgrade-plan-modal.tsx
@@ -14,7 +14,6 @@ import {
} from "@dub/ui";
import {
APP_DOMAIN,
- HOME_DOMAIN,
SELF_SERVE_PAID_PLANS,
STAGGER_CHILD_VARIANTS,
capitalize,
@@ -298,7 +297,7 @@ function UpgradePlanModal({
<div className="mt-2 flex items-center justify-center space-x-2">
{currentPlan === "free" ? (
<a
- href={`${HOME_DOMAIN}/pricing`}
+ href="https://dub.co/pricing"
target="_blank"
className="text-center text-xs text-gray-500 underline-offset-4 transition-all hover:text-gray-800 hover:underline"
>
@@ -353,7 +352,7 @@ function UpgradePlanModal({
</Link>
) : (
<a
- href={`${HOME_DOMAIN}/enterprise`}
+ href="https://dub.co/enterprise"
target="_blank"
className="text-center text-xs text-gray-500 underline-offset-4 transition-all hover:text-gray-800 hover:underline"
>
diff --git a/apps/web/ui/workspaces/create-workspace-button.tsx b/apps/web/ui/workspaces/create-workspace-button.tsx
index 18f8134822..3bfedc5b3e 100644
--- a/apps/web/ui/workspaces/create-workspace-button.tsx
+++ b/apps/web/ui/workspaces/create-workspace-button.tsx
@@ -4,7 +4,7 @@ import useWorkspaces from "@/lib/swr/use-workspaces";
import { ModalContext } from "@/ui/modals/provider";
import { Button } from "@dub/ui";
import { TooltipContent } from "@dub/ui/src/tooltip";
-import { FREE_WORKSPACES_LIMIT, HOME_DOMAIN } from "@dub/utils";
+import { FREE_WORKSPACES_LIMIT } from "@dub/utils";
import { useContext } from "react";
export default function CreateWorkspaceButton() {
@@ -23,7 +23,7 @@ export default function CreateWorkspaceButton() {
href={
freeWorkspaces
? `/${freeWorkspaces[0].slug}/settings/billing?upgrade=pro`
- : `${HOME_DOMAIN}/pricing`
+ : "https://dub.co/pricing"
}
/>
) : undefined
diff --git a/apps/web/ui/workspaces/workspace-card.tsx b/apps/web/ui/workspaces/workspace-card.tsx
index a67a150dd1..77ffc88456 100644
--- a/apps/web/ui/workspaces/workspace-card.tsx
+++ b/apps/web/ui/workspaces/workspace-card.tsx
@@ -11,13 +11,7 @@ import {
NumberTooltip,
Tooltip,
} from "@dub/ui";
-import {
- DICEBEAR_AVATAR_URL,
- HOME_DOMAIN,
- cn,
- fetcher,
- nFormatter,
-} from "@dub/utils";
+import { DICEBEAR_AVATAR_URL, cn, fetcher, nFormatter } from "@dub/utils";
import {
BarChart2,
ExternalLink,
@@ -70,7 +64,7 @@ export default function WorkspaceCard({
migrated to a custom workspace.
</p>
<a
- href={`${HOME_DOMAIN}/changelog/dub-links-updates`}
+ href="https://dub.co/changelog/dub-links-updates"
target="_blank"
className="mt-1 block text-gray-500 underline underline-offset-4 hover:text-gray-800"
>
diff --git a/packages/ui/src/form.tsx b/packages/ui/src/form.tsx
index 682599a541..6e58529875 100644
--- a/packages/ui/src/form.tsx
+++ b/packages/ui/src/form.tsx
@@ -50,7 +50,7 @@ export function Form({
disabled={disabledTooltip ? true : false}
onChange={(e) => setValue(e.target.value)}
className={cn(
- "w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",
+ "w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",
{
"cursor-not-allowed bg-gray-100 text-gray-400": disabledTooltip,
},