29 lines
896 B
JavaScript
29 lines
896 B
JavaScript
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||
|
import { injectIntl, FormattedMessage } from 'react-intl';
|
||
|
import SettingToggle from '../../notifications/components/setting_toggle';
|
||
|
|
||
|
export default @injectIntl
|
||
|
class ColumnSettings extends React.PureComponent {
|
||
|
|
||
|
static propTypes = {
|
||
|
settings: ImmutablePropTypes.map.isRequired,
|
||
|
onChange: PropTypes.func.isRequired,
|
||
|
intl: PropTypes.object.isRequired,
|
||
|
};
|
||
|
|
||
|
render() {
|
||
|
const { settings, onChange } = this.props;
|
||
|
|
||
|
return (
|
||
|
<div>
|
||
|
<div className='column-settings__row'>
|
||
|
<SettingToggle prefix='account_timeline' settings={settings} settingPath={['shows', 'reblog']} onChange={onChange} label={<FormattedMessage id='home.column_settings.show_reblogs' defaultMessage='Show reposts' />} />
|
||
|
</div>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
}
|