import { injectIntl, defineMessages } from 'react-intl' import ImmutablePureComponent from 'react-immutable-pure-component' import ImmutablePropTypes from 'react-immutable-proptypes' import ModalLayout from './modal_layout' import Button from '../button' import Text from '../text' import SettingSwitch from '../setting_switch' const messages = defineMessages({ message: { id: 'display_options.message', defaultMessage: 'Display settings affect your Gab account on this browser. These settings are only visible to you.' }, title: { id: 'display_options', defaultMessage: 'Customize your view' }, }) const mapStateToProps = (state) => ({ settings: state.getIn(['notifications', 'filter']), }) const mapDispatchToProps = (dispatch) => ({ onChange(path, value) { dispatch(setFilter(path, value)) }, }) export default @connect(mapStateToProps, mapDispatchToProps) @injectIntl class DisplayOptionsModal extends ImmutablePureComponent { static propTypes = { isSubmitting: PropTypes.bool.isRequired, account: PropTypes.object.isRequired, onConfirm: PropTypes.func.isRequired, onClose: PropTypes.func.isRequired, intl: PropTypes.object.isRequired, onChange: PropTypes.func.isRequired, settings: ImmutablePropTypes.map.isRequired, } handleClick = () => { this.props.onClose() this.props.onConfirm(this.props.account, this.props.notifications) } // document.documentElement.style.setProperty("--color-surface", "black"); render() { const { account, intl, settings, onChange, onClose, } = this.props // theme - light, muted, dark // text size - extra small, small, normal, medium, large, extra large // rounded borders return (
{intl.formatMessage(messages.message)}
Font Size
test
Rounded
Theme
Light
Muted
Black
) } }