diff options
Diffstat (limited to 'src/components/settings/settings/EditSettingsForm.js')
-rw-r--r-- | src/components/settings/settings/EditSettingsForm.js | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js index b87c11fc4..280449ead 100644 --- a/src/components/settings/settings/EditSettingsForm.js +++ b/src/components/settings/settings/EditSettingsForm.js | |||
@@ -96,7 +96,6 @@ export default @observer class EditSettingsForm extends Component { | |||
96 | isClearingAllCache: PropTypes.bool.isRequired, | 96 | isClearingAllCache: PropTypes.bool.isRequired, |
97 | onClearAllCache: PropTypes.func.isRequired, | 97 | onClearAllCache: PropTypes.func.isRequired, |
98 | cacheSize: PropTypes.string.isRequired, | 98 | cacheSize: PropTypes.string.isRequired, |
99 | isPremiumUser: PropTypes.bool.isRequired, | ||
100 | isSpellcheckerPremiumFeature: PropTypes.bool.isRequired, | 99 | isSpellcheckerPremiumFeature: PropTypes.bool.isRequired, |
101 | }; | 100 | }; |
102 | 101 | ||
@@ -127,7 +126,6 @@ export default @observer class EditSettingsForm extends Component { | |||
127 | isClearingAllCache, | 126 | isClearingAllCache, |
128 | onClearAllCache, | 127 | onClearAllCache, |
129 | cacheSize, | 128 | cacheSize, |
130 | isPremiumUser, | ||
131 | isSpellcheckerPremiumFeature, | 129 | isSpellcheckerPremiumFeature, |
132 | } = this.props; | 130 | } = this.props; |
133 | const { intl } = this.context; | 131 | const { intl } = this.context; |
@@ -180,16 +178,14 @@ export default @observer class EditSettingsForm extends Component { | |||
180 | 178 | ||
181 | {/* Advanced */} | 179 | {/* Advanced */} |
182 | <h2 id="advanced">{intl.formatMessage(messages.headlineAdvanced)}</h2> | 180 | <h2 id="advanced">{intl.formatMessage(messages.headlineAdvanced)}</h2> |
183 | {!isPremiumUser && isSpellcheckerPremiumFeature ? ( | 181 | <PremiumFeatureContainer |
184 | <PremiumFeatureContainer> | 182 | condition={isSpellcheckerPremiumFeature} |
185 | <Toggle | 183 | > |
186 | field={form.$('enableSpellchecking')} | 184 | <Toggle |
187 | disabled | 185 | field={form.$('enableSpellchecking')} |
188 | /> | 186 | disabled |
189 | </PremiumFeatureContainer> | 187 | /> |
190 | ) : ( | 188 | </PremiumFeatureContainer> |
191 | <Toggle field={form.$('enableSpellchecking')} /> | ||
192 | )} | ||
193 | <Toggle field={form.$('enableGPUAcceleration')} /> | 189 | <Toggle field={form.$('enableGPUAcceleration')} /> |
194 | <p className="settings__help">{intl.formatMessage(messages.enableGPUAccelerationInfo)}</p> | 190 | <p className="settings__help">{intl.formatMessage(messages.enableGPUAccelerationInfo)}</p> |
195 | {/* <Select field={form.$('spellcheckingLanguage')} /> */} | 191 | {/* <Select field={form.$('spellcheckingLanguage')} /> */} |