From f525d246b84a6957a591fa23edcb8fdb82017402 Mon Sep 17 00:00:00 2001 From: Regaron Date: Tue, 1 Dec 2020 07:58:00 +0545 Subject: [PATCH] Update Button.tsx --- components/ui/Button/Button.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ui/Button/Button.tsx b/components/ui/Button/Button.tsx index b415592bb..cf24e94d9 100644 --- a/components/ui/Button/Button.tsx +++ b/components/ui/Button/Button.tsx @@ -27,12 +27,12 @@ const Button: React.FC = forwardRef((props, buttonRef) => { variant = 'flat', children, active, - onClick, width, Component = 'button', loading = false, disabled = false, style = {}, + ...rest } = props const ref = useRef(null) @@ -57,7 +57,7 @@ const Button: React.FC = forwardRef((props, buttonRef) => { width, ...style, }} - onClick={onClick} + {...rest} > {children} {loading && (