Update Button.tsx

Button onClick props was missing
This commit is contained in:
Regaron 2020-11-29 08:37:09 +05:45 committed by GitHub
parent bbcf63b892
commit 58287a5ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
width, width,
...style, ...style,
}} }}
onClick={onClick}
> >
{children} {children}
{loading && ( {loading && (