mirror of
https://github.com/documenso/documenso
synced 2026-05-24 09:28:27 +00:00
💄 show disabled style on link buttons
This commit is contained in:
parent
797a94f8fc
commit
7a77d9cf76
1 changed files with 1 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue