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.

Update inline-badge-popover.tsx

Kiran K1ded8e82b8fd
diff --git a/apps/web/ui/partners/rewards/inline-badge-popover.tsx b/apps/web/ui/partners/rewards/inline-badge-popover.tsx
index f61d31c56c..d2641236af 100644
--- a/apps/web/ui/partners/rewards/inline-badge-popover.tsx
+++ b/apps/web/ui/partners/rewards/inline-badge-popover.tsx
@@ -35,8 +35,13 @@ export const InlineBadgePopoverContext = createContext<{
export function InlineBadgePopover({
text,
invalid,
+ disabled,
children,
-}: PropsWithChildren<{ text: ReactNode; invalid?: boolean }>) {
+}: PropsWithChildren<{
+ text: ReactNode;
+ invalid?: boolean;
+ disabled?: boolean;
+}>) {
const [isOpen, setIsOpen] = useState(false);
return (
@@ -58,6 +63,7 @@ export function InlineBadgePopover({
>
<button
type="button"
+ disabled={disabled}
className={cn(
"inline-block rounded px-1.5 text-sm font-semibold transition-colors",
invalid