Add "none" as a BsmButtonType option

This commit is contained in:
Shidorien
2023-12-22 01:31:21 +01:00
parent 39f2a16c96
commit 8333e238a6
@@ -6,7 +6,7 @@ import { useClickOutside } from "renderer/hooks/use-click-outside.hook";
import { useThemeColor } from "renderer/hooks/use-theme-color.hook";
import { getCorrectTextColor } from "renderer/helpers/correct-text-color";
type BsmButtonType = "primary" | "secondary" | "success" | "cancel" | "error";
type BsmButtonType = "primary" | "secondary" | "success" | "cancel" | "error" | "none";
type Props = {
className?: string;
@@ -66,6 +66,10 @@ export function BsmButton({ className, style, imgClassName, iconClassName, icon,
if (typeColor === "success") {
return "bg-green-500";
}
if (typeColor === "none")
{
return "";
}
return "";
})();