From bde189698517ea368537974b9878074368797d2f Mon Sep 17 00:00:00 2001 From: Simon Fondrie-Teitler Date: Wed, 24 May 2017 18:47:53 -0400 Subject: [bug] Add "show" option to modal in confirmation component Defaults to True. Without it, the confirmation modal doesn't show and you aren't able to remove a provider from the list. --- ui/app/components/confirmation.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/app/components/confirmation.js b/ui/app/components/confirmation.js index deceb47b..46f69e29 100644 --- a/ui/app/components/confirmation.js +++ b/ui/app/components/confirmation.js @@ -7,7 +7,7 @@ import {Button, ButtonToolbar, Modal} from 'react-bootstrap' import PropTypes from 'prop-types' const Confirmation = props => ( - + {props.title} @@ -27,6 +27,7 @@ const Confirmation = props => ( ) Confirmation.defaultProps = { + show: true, title: "Are you sure?", onCancel: null, onAccept: null, @@ -35,6 +36,7 @@ Confirmation.defaultProps = { } Confirmation.propTypes = { + show: PropTypes.bool, className: PropTypes.string, onCancel: PropTypes.func.isRequired, onAccept: PropTypes.func.isRequired, -- cgit v1.2.3