This commit is contained in:
Bel Curcio
2020-12-08 10:43:44 -03:00
parent 4d4e4f667e
commit 60368e8858
3 changed files with 9 additions and 9 deletions

View File

@@ -27,12 +27,12 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
variant = 'flat',
children,
active,
onClick,
width,
Component = 'button',
loading = false,
disabled = false,
style = {},
Component = 'button',
...rest
} = props
const ref = useRef<typeof Component>(null)
@@ -57,6 +57,7 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
width,
...style,
}}
{...rest}
>
{children}
{loading && (