💄 show disabled style on link buttons

This commit is contained in:
Timur Ercan
2023-02-15 14:49:07 +01:00
parent 797a94f8fc
commit 7a77d9cf76

View File

@ -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";