The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fixed re-render bug
Steven Tey23c91af61793
diff --git a/components/app/link-card.tsx b/components/app/link-card.tsxindex febf0442f7..777617561d 100644--- a/components/app/link-card.tsx+++ b/components/app/link-card.tsx@@ -61,7 +61,7 @@ export default function LinkCard({ props }: { props: LinkProps }) {<div><div className="flex items-center space-x-2 max-w-fit"><a- className="text-blue-800 text-sm sm:text-base font-semibold truncate w-40 sm:w-full"+ className="text-blue-800 text-sm sm:text-base font-semibold truncate w-32 sm:w-full"href={linkConstructor({ key, domain })}target="_blank"rel="noreferrer"@@ -84,8 +84,8 @@ export default function LinkCard({ props }: { props: LinkProps }) {<LoadingDots color="#71717A" />) : (nFormatter(parseInt(clicks))- )}{" "}- clicks+ )}+ <span className="hidden sm:block"> clicks</span></p></a></Link>diff --git a/components/home/link-card.tsx b/components/home/link-card.tsxindex 07a60a480d..73aeb5bab3 100644--- a/components/home/link-card.tsx+++ b/components/home/link-card.tsx@@ -156,8 +156,8 @@ export default function LinkCard({<LoadingDots color="#71717A" />) : (nFormatter(parseInt(clicks))- )}{" "}- clicks+ )}+ <span className="hidden sm:block"> clicks</span></p></a></Link>diff --git a/components/shared/tooltip.tsx b/components/shared/tooltip.tsxindex 71e7068bca..0cc8289026 100644--- a/components/shared/tooltip.tsx+++ b/components/shared/tooltip.tsx@@ -2,7 +2,7 @@/* Tooltip Contents */import Link from "next/link";-import { ReactNode, useEffect, useRef, useState } from "react";+import { ReactNode, useRef, useState } from "react";import * as TooltipPrimitive from "@radix-ui/react-tooltip";import { AnimatePresence, motion, useAnimation } from "framer-motion";import BlurImage from "@/components/shared/blur-image";@@ -34,7 +34,7 @@ export default function Tooltip({controls.start({ y: 0, transition: transitionProps });}}- const randomIndex = Math.floor(Math.random() * 1000000).toString();+return (<><button@@ -48,7 +48,7 @@ export default function Tooltip({<><motion.divref={mobileTooltipRef}- key={`mobile-tooltip-${randomIndex}`}+ key="mobile-tooltip"className="group fixed bottom-0 inset-x-0 z-40 w-screen sm:hidden cursor-grab active:cursor-grabbing"initial={{ y: "100%" }}animate={{@@ -80,7 +80,7 @@ export default function Tooltip({</div></motion.div><motion.div- key={`mobile-tooltip-backdrop-${randomIndex}`}+ key="mobile-tooltip-backdrop"className="fixed inset-0 z-30 bg-gray-100 bg-opacity-10 backdrop-blur sm:hidden"initial={{ opacity: 0 }}animate={{ opacity: 1 }}