The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update button style and avatar for machine
Kiran K917eb3ab70db
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/tokens/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/tokens/page-client.tsxindex 38152657c0..63865cdc8f 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/tokens/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/tokens/page-client.tsx@@ -10,6 +10,7 @@ import { AnimatedEmptyState } from "@/ui/shared/animated-empty-state";import { Delete } from "@/ui/shared/icons";import {Button,+ buttonVariants,Dots,Icon,Key,@@ -83,8 +84,10 @@ export default function TokensPageClient() {<Tooltip content={row.original.user.name}><imgsrc={- row.original.user.image ||- `${DICEBEAR_AVATAR_URL}${row.original.user.id}`+ row.original.user.isMachine+ ? "https://api.dicebear.com/7.x/bottts/svg?seed=Sara"+ : row.original.user.image ||+ `${DICEBEAR_AVATAR_URL}${row.original.user.id}`}alt={row.original.user.name!}className="size-5 rounded-full"@@ -231,6 +234,7 @@ function RowMenuButton({ token }: { token: TokenProps }) {<MenuItemicon={Delete}label="Delete"+ danger={true}onSelect={() => {setIsOpen(false);setShowDeleteTokenModal(true);@@ -256,22 +260,29 @@ function MenuItem({icon: IconComp,label,onSelect,- variant,+ danger,}: {icon: Icon;label: string;onSelect: () => void;- variant?: string;+ danger?: boolean;}) {return (<Command.ItemclassName={cn("flex cursor-pointer select-none items-center gap-2 whitespace-nowrap rounded-md p-2 text-sm text-neutral-600",- "data-[selected=true]:bg-gray-100",+ danger+ ? buttonVariants({ variant: "danger-outline" })+ : "text-neutral-500 data-[selected=true]:bg-gray-100",)}onSelect={onSelect}>- <IconComp className="size-4 shrink-0 text-neutral-500" />+ <IconComp+ className={cn(+ "size-4 shrink-0",+ danger ? "hover:bg-red-600 hover:text-white" : "text-neutral-500",+ )}+ />{label}</Command.Item>);diff --git a/apps/web/ui/modals/delete-token-modal.tsx b/apps/web/ui/modals/delete-token-modal.tsxindex 1f7aa86a5c..2193a4540d 100644--- a/apps/web/ui/modals/delete-token-modal.tsx+++ b/apps/web/ui/modals/delete-token-modal.tsx@@ -76,7 +76,10 @@ function DeleteTokenModal({<Tooltip content={token.user.name}><imgsrc={- token.user.image || `${DICEBEAR_AVATAR_URL}${token.user.id}`+ token.user.isMachine+ ? "https://api.dicebear.com/7.x/bottts/svg?seed=Sara"+ : token.user.image ||+ `${DICEBEAR_AVATAR_URL}${token.user.id}`}alt={token.user.name!}className="size-5 rounded-full"