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
30 lines
907 B
8 years ago
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||
6 years ago
|
import { injectIntl, FormattedMessage } from 'react-intl';
|
||
7 years ago
|
import SettingToggle from '../../notifications/components/setting_toggle';
|
||
8 years ago
|
|
||
6 years ago
|
export default @injectIntl
|
||
|
class ColumnSettings extends React.PureComponent {
|
||
8 years ago
|
|
||
|
static propTypes = {
|
||
|
settings: ImmutablePropTypes.map.isRequired,
|
||
|
onChange: PropTypes.func.isRequired,
|
||
|
intl: PropTypes.object.isRequired,
|
||
7 years ago
|
columnId: PropTypes.string,
|
||
8 years ago
|
};
|
||
|
|
||
|
render () {
|
||
6 years ago
|
const { settings, onChange } = this.props;
|
||
8 years ago
|
|
||
|
return (
|
||
|
<div>
|
||
7 years ago
|
<div className='column-settings__row'>
|
||
5 years ago
|
<SettingToggle settings={settings} settingPath={['other', 'onlyMedia']} onChange={onChange} label={<FormattedMessage id='community.column_settings.media_only' defaultMessage='Media only' />} />
|
||
7 years ago
|
</div>
|
||
8 years ago
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
}
|