diff --git a/src/components/buttons/ActionButton.tsx b/src/components/buttons/ActionButton.tsx index e324dd7..6907feb 100644 --- a/src/components/buttons/ActionButton.tsx +++ b/src/components/buttons/ActionButton.tsx @@ -1,6 +1,6 @@ import { FC } from 'react' import Button, { ButtonVariant } from '../buttons/Button' -import { Icon, layers, download } from '@/components/icons' +import { Icon, trash, download } from '@/components/icons' // Define available action types export type ActionType = 'install_cream' | 'uninstall_cream' | 'install_smoke' | 'uninstall_smoke' @@ -45,14 +45,12 @@ const ActionButton: FC = ({ // Select appropriate icon based on action type and state const getIconInfo = () => { - const isCream = action.includes('cream') - if (isInstalled) { // Uninstall actions - return { name: layers, variant: 'bold' } + return { name: trash, variant: 'solid' } } else { // Install actions - return { name: download, variant: isCream ? 'bold' : 'outline' } + return { name: download, variant: 'solid' } } } diff --git a/src/components/buttons/AnimatedCheckbox.tsx b/src/components/buttons/AnimatedCheckbox.tsx index 177063e..ebf1736 100644 --- a/src/components/buttons/AnimatedCheckbox.tsx +++ b/src/components/buttons/AnimatedCheckbox.tsx @@ -23,7 +23,7 @@ const AnimatedCheckbox = ({ - {checked && } + {checked && } {(label || sublabel) && ( diff --git a/src/components/buttons/Button.tsx b/src/components/buttons/Button.tsx index 8c34c80..8cbbf49 100644 --- a/src/components/buttons/Button.tsx +++ b/src/components/buttons/Button.tsx @@ -10,6 +10,7 @@ interface ButtonProps extends ButtonHTMLAttributes { leftIcon?: React.ReactNode rightIcon?: React.ReactNode fullWidth?: boolean + iconOnly?: boolean } /** @@ -23,6 +24,7 @@ const Button: FC = ({ leftIcon, rightIcon, fullWidth = false, + iconOnly = false, className = '', disabled, ...props @@ -43,11 +45,14 @@ const Button: FC = ({ warning: 'btn-warning', }[variant] + // Determine if this is an icon-only button + const isIconOnly = iconOnly || (!children && (leftIcon || rightIcon)) + return ( ) } -export default Button +export default Button \ No newline at end of file