Add demetricator preference
This commit is contained in:
parent
c90f087d2a
commit
7e0b4f5f47
3 changed files with 10 additions and 1 deletions
|
@ -45,6 +45,7 @@ const mapStateToProps = (state) => {
|
|||
theme: state.getIn(['settings', 'theme']),
|
||||
systemFont: state.getIn(['settings', 'systemFont']),
|
||||
dyslexicFont: state.getIn(['settings', 'dyslexicFont']),
|
||||
demetricator: state.getIn(['settings', 'demetricator']),
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -57,10 +58,11 @@ class GabSocialMount extends React.PureComponent {
|
|||
theme: PropTypes.string,
|
||||
systemFont: PropTypes.bool,
|
||||
dyslexicFont: PropTypes.bool,
|
||||
demetricator: PropTypes.bool,
|
||||
};
|
||||
|
||||
render() {
|
||||
const { me, theme, systemFont, dyslexicFont } = this.props;
|
||||
const { me, theme, systemFont, dyslexicFont, demetricator } = this.props;
|
||||
if (me === null) return null;
|
||||
|
||||
// Disabling introduction for launch
|
||||
|
@ -74,6 +76,7 @@ class GabSocialMount extends React.PureComponent {
|
|||
[`theme-${theme}`]: theme,
|
||||
'system-font': systemFont,
|
||||
'dyslexic': dyslexicFont,
|
||||
'demetricator': demetricator,
|
||||
});
|
||||
|
||||
return (
|
||||
|
|
|
@ -142,6 +142,11 @@ class Preferences extends ImmutablePureComponent {
|
|||
path={['dyslexicFont']}
|
||||
/>
|
||||
</div>
|
||||
<SettingsCheckbox
|
||||
label='Use Demetricator'
|
||||
hint='Decrease social media anxiety by hiding all numbers from the site.'
|
||||
path={['demetricator']}
|
||||
/>
|
||||
</FieldsGroup>
|
||||
</SimpleForm>
|
||||
</Column>
|
||||
|
|
|
@ -24,6 +24,7 @@ const initialState = ImmutableMap({
|
|||
|
||||
systemFont: false,
|
||||
dyslexicFont: false,
|
||||
demetricator: false,
|
||||
|
||||
home: ImmutableMap({
|
||||
shows: ImmutableMap({
|
||||
|
|
Loading…
Reference in a new issue