The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
disable deleting root domain link
Steven Teyb0eac2bad1e6
diff --git a/apps/web/ui/links/link-card.tsx b/apps/web/ui/links/link-card.tsxindex 76b0762f25..240e8f354b 100644--- a/apps/web/ui/links/link-card.tsx+++ b/apps/web/ui/links/link-card.tsx@@ -604,17 +604,19 @@ export default function LinkCard({),})}/>- <Button- text="Delete"- variant="danger-outline"- onClick={() => {- setOpenPopover(false);- setShowDeleteLinkModal(true);- }}- icon={<Delete className="h-4 w-4" />}- shortcut="X"- className="h-9 px-2 font-medium"- />+ {key !== "_root" && (+ <Button+ text="Delete"+ variant="danger-outline"+ onClick={() => {+ setOpenPopover(false);+ setShowDeleteLinkModal(true);+ }}+ icon={<Delete className="h-4 w-4" />}+ shortcut="X"+ className="h-9 px-2 font-medium"+ />+ )}{!slug && ( // this is only shown in admin mode (where there's no slug)<buttononClick={() => {