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.

dont show set as primary when domain is primary

Steven Teyd647dc7f5667
diff --git a/apps/web/ui/domains/domain-card.tsx b/apps/web/ui/domains/domain-card.tsx
index a529505c3c..32dec80cf8 100644
--- a/apps/web/ui/domains/domain-card.tsx
+++ b/apps/web/ui/domains/domain-card.tsx
@@ -177,16 +177,18 @@ export default function DomainCard({ props }: { props: DomainProps }) {
icon={<QrCode className="h-4 w-4" />}
className="h-9 justify-start px-2 font-medium"
/>
- <Button
- text="Set as Primary"
- variant="outline"
- onClick={() => {
- setOpenPopover(false);
- setShowPrimaryDomainModal(true);
- }}
- icon={<FileCog className="h-4 w-4" />}
- className="h-9 justify-start px-2 font-medium"
- />
+ {!primary && (
+ <Button
+ text="Set as Primary"
+ variant="outline"
+ onClick={() => {
+ setOpenPopover(false);
+ setShowPrimaryDomainModal(true);
+ }}
+ icon={<FileCog className="h-4 w-4" />}
+ className="h-9 justify-start px-2 font-medium"
+ />
+ )}
<Button
text={archived ? "Unarchive" : "Archive"}
variant="outline"