chore: code refactor (#2450)

This commit is contained in:
Anmol Singh Bhatia 2023-10-17 12:19:34 +05:30 committed by GitHub
parent fc99615875
commit e496cec49f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 48 deletions

View file

@ -47,13 +47,13 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
>
{prependIcon && (
<div className={buttonIconStyle}>
{React.cloneElement(prependIcon, { "stroke-width": 2 })}
{React.cloneElement(prependIcon, { strokeWidth: 2 })}
</div>
)}
{children}
{appendIcon && (
<div className={buttonIconStyle}>
{React.cloneElement(appendIcon, { "stroke-width": 2 })}
{React.cloneElement(appendIcon, { strokeWidth: 2 })}
</div>
)}
</button>