From 7a77d9cf76c4cd29684686994cb88e2ea3b4e97a Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Wed, 15 Feb 2023 14:49:07 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20show=20disabled=20style=20on=20l?= =?UTF-8?q?ink=20buttons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/components/button/Button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/components/button/Button.tsx b/packages/ui/components/button/Button.tsx index 507dbf27d..85cee780a 100644 --- a/packages/ui/components/button/Button.tsx +++ b/packages/ui/components/button/Button.tsx @@ -3,7 +3,7 @@ import Link from "next/link"; import React from "react"; export function Button(props: any) { - const isLink = typeof props.href !== "undefined"; + const isLink = typeof props.href !== "undefined" && !props.disabled; const { color = "primary", icon, disabled, onClick } = props; const baseStyles = "inline-flex items-center justify-center min-w-[80px] rounded-md border border-transparent px-4 py-2 text-sm font-medium shadow-sm disabled:bg-gray-300";