From c6871cd0c5ce91f21e5a48895d86a4134c9fdb4e Mon Sep 17 00:00:00 2001 From: Alf Eaton <eaton.alf@gmail.com> Date: Fri, 1 Sep 2017 12:04:17 +0100 Subject: [PATCH] Show Confirm block as a modal --- src/atoms/Button.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/atoms/Button.js b/src/atoms/Button.js index 052c07063..ade503f39 100644 --- a/src/atoms/Button.js +++ b/src/atoms/Button.js @@ -1,9 +1,10 @@ import React from 'react' -const Button = ({ children, type = 'button', disabled}) => ( +const Button = ({ children, type = 'button', disabled, onClick}) => ( <button type={type} - disabled={disabled}>{children}</button> + disabled={disabled} + onClick={onClick}>{children}</button> ) export default Button -- GitLab