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.

Use `enabled:` instead of `!`

Tim Wilson5d4ade4d8f32
diff --git a/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/application/form.tsx b/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/application/form.tsx
index 919b449a9d..faa5ab63dd 100644
--- a/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/application/form.tsx
+++ b/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/application/form.tsx
@@ -171,7 +171,7 @@ export function ProgramApplicationForm({
<Button
text="Submit application"
- className="mt-4 border-[var(--brand)] bg-[var(--brand)] hover:bg-[var(--brand)] hover:ring-[var(--brand-ring)]"
+ className="mt-4 enabled:border-[var(--brand)] enabled:bg-[var(--brand)] enabled:hover:bg-[var(--brand)] enabled:hover:ring-[var(--brand-ring)]"
loading={isLoading}
/>
</form>
diff --git a/packages/ui/src/button.tsx b/packages/ui/src/button.tsx
index e4221fcdbc..77888c57c0 100644
--- a/packages/ui/src/button.tsx
+++ b/packages/ui/src/button.tsx
@@ -102,7 +102,7 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(
className={cn(
"group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",
props.disabled || loading
- ? "cursor-not-allowed !border-gray-200 !bg-gray-100 !text-gray-400 outline-none"
+ ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400 outline-none"
: buttonVariants({ variant }),
className,
)}