about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/report/components/status_check_box.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/components/features/report/components/status_check_box.jsx')
-rw-r--r--app/assets/javascripts/components/features/report/components/status_check_box.jsx39
1 files changed, 0 insertions, 39 deletions
diff --git a/app/assets/javascripts/components/features/report/components/status_check_box.jsx b/app/assets/javascripts/components/features/report/components/status_check_box.jsx
deleted file mode 100644
index bc866616a..000000000
--- a/app/assets/javascripts/components/features/report/components/status_check_box.jsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import PropTypes from 'prop-types';
-import ImmutablePropTypes from 'react-immutable-proptypes';
-import emojify from '../../../emoji';
-import Toggle from 'react-toggle';
-
-class StatusCheckBox extends React.PureComponent {
-
-  render () {
-    const { status, checked, onToggle, disabled } = this.props;
-    const content = { __html: emojify(status.get('content')) };
-
-    if (status.get('reblog')) {
-      return null;
-    }
-
-    return (
-      <div className='status-check-box'>
-        <div
-          className='status__content'
-          dangerouslySetInnerHTML={content}
-        />
-
-        <div className='status-check-box-toggle'>
-          <Toggle checked={checked} onChange={onToggle} disabled={disabled} />
-        </div>
-      </div>
-    );
-  }
-
-}
-
-StatusCheckBox.propTypes = {
-  status: ImmutablePropTypes.map.isRequired,
-  checked: PropTypes.bool,
-  onToggle: PropTypes.func.isRequired,
-  disabled: PropTypes.bool
-};
-
-export default StatusCheckBox;