From 85786bc07d64071b6f0c994d61b39feb75e0dec8 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 8 Aug 2022 17:44:12 -0500 Subject: [PATCH] Delete unused SettingsCheckbox component --- app/soapbox/components/settings_checkbox.js | 40 --------------------- 1 file changed, 40 deletions(-) delete mode 100644 app/soapbox/components/settings_checkbox.js diff --git a/app/soapbox/components/settings_checkbox.js b/app/soapbox/components/settings_checkbox.js deleted file mode 100644 index 969f691a1..000000000 --- a/app/soapbox/components/settings_checkbox.js +++ /dev/null @@ -1,40 +0,0 @@ -import PropTypes from 'prop-types'; -import React from 'react'; -import ImmutablePropTypes from 'react-immutable-proptypes'; -import ImmutablePureComponent from 'react-immutable-pure-component'; -import { connect } from 'react-redux'; - -import { getSettings, changeSetting } from 'soapbox/actions/settings'; -import { Checkbox } from 'soapbox/features/forms'; - -const mapStateToProps = state => ({ - settings: getSettings(state), -}); - -export default @connect(mapStateToProps) -class SettingsCheckbox extends ImmutablePureComponent { - - static propTypes = { - path: PropTypes.array.isRequired, - settings: ImmutablePropTypes.map.isRequired, - } - - onChange = path => { - return e => { - this.props.dispatch(changeSetting(path, e.target.checked)); - }; - } - - render() { - const { settings, path, ...props } = this.props; - - return ( - - ); - } - -}