The code powering m.abunchtell.com https://m.abunchtell.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

30 rader
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. }