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.

punycode

Steven Tey6bba7e3da232
diff --git a/apps/web/ui/projects/project-card.tsx b/apps/web/ui/projects/project-card.tsx
index d4fb4ee48f..69dee9b013 100644
--- a/apps/web/ui/projects/project-card.tsx
+++ b/apps/web/ui/projects/project-card.tsx
@@ -20,6 +20,7 @@ import {
} from "@dub/utils";
import { BarChart2, ExternalLink, Globe, Link2 } from "lucide-react";
import Link from "next/link";
+import punycode from "punycode/";
import useSWR from "swr";
import useSWRImmutable from "swr/immutable";
import PlanBadge from "./plan-badge";
@@ -204,7 +205,9 @@ const DomainsTooltip = ({
) : (
<XCircleFill className="h-5 w-5 text-gray-300" />
)}
- <p className="text-sm font-semibold text-gray-500">{slug}</p>
+ <p className="text-sm font-semibold text-gray-500">
+ {punycode.toUnicode(slug)}
+ </p>
</div>
<ExternalLink className="h-4 w-4 text-gray-500 md:invisible md:group-hover:visible" />
</a>