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.
35 lines
1.3 KiB
35 lines
1.3 KiB
8 years ago
|
import React from 'react';
|
||
8 years ago
|
import PropTypes from 'prop-types';
|
||
8 years ago
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||
6 years ago
|
import { injectIntl, FormattedMessage } from 'react-intl';
|
||
8 years ago
|
import SettingToggle from '../../notifications/components/setting_toggle';
|
||
|
|
||
6 years ago
|
export default @injectIntl
|
||
|
class ColumnSettings extends React.PureComponent {
|
||
8 years ago
|
|
||
8 years ago
|
static propTypes = {
|
||
|
settings: ImmutablePropTypes.map.isRequired,
|
||
|
onChange: PropTypes.func.isRequired,
|
||
8 years ago
|
intl: PropTypes.object.isRequired,
|
||
8 years ago
|
};
|
||
|
|
||
8 years ago
|
render () {
|
||
6 years ago
|
const { settings, onChange } = this.props;
|
||
8 years ago
|
|
||
|
return (
|
||
8 years ago
|
<div>
|
||
|
<span className='column-settings__section'><FormattedMessage id='home.column_settings.basic' defaultMessage='Basic' /></span>
|
||
8 years ago
|
|
||
8 years ago
|
<div className='column-settings__row'>
|
||
7 years ago
|
<SettingToggle prefix='home_timeline' settings={settings} settingPath={['shows', 'reblog']} onChange={onChange} label={<FormattedMessage id='home.column_settings.show_reblogs' defaultMessage='Show boosts' />} />
|
||
8 years ago
|
</div>
|
||
8 years ago
|
|
||
8 years ago
|
<div className='column-settings__row'>
|
||
7 years ago
|
<SettingToggle prefix='home_timeline' settings={settings} settingPath={['shows', 'reply']} onChange={onChange} label={<FormattedMessage id='home.column_settings.show_replies' defaultMessage='Show replies' />} />
|
||
8 years ago
|
</div>
|
||
|
</div>
|
||
8 years ago
|
);
|
||
|
}
|
||
|
|
||
8 years ago
|
}
|