From 2907980d36b1f85ed212f57f4aa98804206bcffb Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 11 Sep 2020 09:07:47 -0700 Subject: [PATCH] Add click prop to Button --- src/Button/Button.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Button/Button.tsx b/src/Button/Button.tsx index 8df9675c..41a12343 100644 --- a/src/Button/Button.tsx +++ b/src/Button/Button.tsx @@ -7,11 +7,13 @@ import Link from '../../assets/link.svg' interface Props { type: string + click: () => void } class Button extends React.Component { static defaultProps: Props = { - type: null + type: null, + click: () => {} } render() { @@ -24,7 +26,7 @@ class Button extends React.Component { icon = } - return