mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
Add "none" as a BsmButtonType option
This commit is contained in:
@@ -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 "";
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user