From eac0315406cab80755f3d5d7befdb9045cd57346 Mon Sep 17 00:00:00 2001 From: nickfiacco-bolt Date: Fri, 4 Dec 2020 16:35:28 -0800 Subject: [PATCH] Add onClick/href props to inner Component element --- components/ui/Button/Button.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/ui/Button/Button.tsx b/components/ui/Button/Button.tsx index e7f3d89c1..1286761ac 100644 --- a/components/ui/Button/Button.tsx +++ b/components/ui/Button/Button.tsx @@ -28,6 +28,7 @@ const Button: React.FC = forwardRef((props, buttonRef) => { children, active, onClick, + href, width, Component = 'button', loading = false, @@ -52,6 +53,8 @@ const Button: React.FC = forwardRef((props, buttonRef) => { data-variant={variant} ref={mergeRefs([ref, buttonRef])} className={rootClassName} + onClick={onClick} + href={href} disabled={disabled} style={{ width,