diff --git a/src/components/ui/Button/Button.tsx b/src/components/ui/Button/Button.tsx index 72d6cb4b..404db347 100644 --- a/src/components/ui/Button/Button.tsx +++ b/src/components/ui/Button/Button.tsx @@ -51,6 +51,8 @@ function Button({ disabled, ...props }: ButtonProps) { + const isButtonIcon = icon && !iconPosition + return ( - {(!iconPosition || iconPosition === 'left') && ( - - )} + {(isButtonIcon || iconPosition === 'left') && } {children} {iconPosition === 'right' && }