The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
907 B

  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import ImmutablePropTypes from 'react-immutable-proptypes';
  4. import { injectIntl, FormattedMessage } from 'react-intl';
  5. import SettingToggle from '../../notifications/components/setting_toggle';
  6. export default @injectIntl
  7. class ColumnSettings extends React.PureComponent {
  8. static propTypes = {
  9. settings: ImmutablePropTypes.map.isRequired,
  10. onChange: PropTypes.func.isRequired,
  11. intl: PropTypes.object.isRequired,
  12. columnId: PropTypes.string,
  13. };
  14. render () {
  15. const { settings, onChange } = this.props;
  16. return (
  17. <div>
  18. <div className='column-settings__row'>
  19. <SettingToggle settings={settings} settingPath={['other', 'onlyMedia']} onChange={onChange} label={<FormattedMessage id='community.column_settings.media_only' defaultMessage='Media Only' />} />
  20. </div>
  21. </div>
  22. );
  23. }
  24. }