From 894cd4668f496a1daf5f3f2b2bfc7e421d6af636 Mon Sep 17 00:00:00 2001 From: Curtis Date: Thu, 2 Jul 2020 22:02:21 +0000 Subject: [PATCH] Update sensitive_button_container.js to prevent it becoming disabled when Subject line is active --- .../compose/containers/sensitive_button_container.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/soapbox/features/compose/containers/sensitive_button_container.js b/app/soapbox/features/compose/containers/sensitive_button_container.js index 3497c0009..dc98de561 100644 --- a/app/soapbox/features/compose/containers/sensitive_button_container.js +++ b/app/soapbox/features/compose/containers/sensitive_button_container.js @@ -12,7 +12,6 @@ const messages = defineMessages({ const mapStateToProps = state => ({ active: state.getIn(['compose', 'sensitive']), - disabled: state.getIn(['compose', 'spoiler']), }); const mapDispatchToProps = dispatch => ({ @@ -27,13 +26,12 @@ class SensitiveButton extends React.PureComponent { static propTypes = { active: PropTypes.bool, - disabled: PropTypes.bool, onClick: PropTypes.func.isRequired, intl: PropTypes.object.isRequired, }; render() { - const { active, disabled, onClick, intl } = this.props; + const { active, onClick, intl } = this.props; return (
@@ -43,7 +41,6 @@ class SensitiveButton extends React.PureComponent { type='checkbox' checked={active} onChange={onClick} - disabled={disabled} />