chore: code refactor (#2450)
This commit is contained in:
parent
fc99615875
commit
e496cec49f
3 changed files with 31 additions and 48 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue