diff options
author | 2020-03-29 16:20:44 +0100 | |
---|---|---|
committer | 2020-03-29 16:21:49 +0100 | |
commit | 56a7085adca22cb32ea318f199a7e8ee60b4797f (patch) | |
tree | 5826fcb9ee5c6347f4ea9eecc107ef378137ed03 /src/containers | |
parent | Remove server setting from settings screen (diff) | |
download | ferdium-app-56a7085adca22cb32ea318f199a7e8ee60b4797f.tar.gz ferdium-app-56a7085adca22cb32ea318f199a7e8ee60b4797f.tar.zst ferdium-app-56a7085adca22cb32ea318f199a7e8ee60b4797f.zip |
Clean up unused locales and props
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index ffefdda77..be251aa8b 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -20,7 +20,7 @@ import { getSelectOptions } from '../../helpers/i18n-helpers'; | |||
20 | import EditSettingsForm from '../../components/settings/settings/EditSettingsForm'; | 20 | import EditSettingsForm from '../../components/settings/settings/EditSettingsForm'; |
21 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 21 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
22 | 22 | ||
23 | import { API, TODOS_FRONTEND } from '../../environment'; | 23 | import { TODOS_FRONTEND } from '../../environment'; |
24 | 24 | ||
25 | import globalMessages from '../../i18n/globalMessages'; | 25 | import globalMessages from '../../i18n/globalMessages'; |
26 | import { DEFAULT_IS_FEATURE_ENABLED_BY_USER } from '../../features/todos'; | 26 | import { DEFAULT_IS_FEATURE_ENABLED_BY_USER } from '../../features/todos'; |
@@ -76,10 +76,6 @@ const messages = defineMessages({ | |||
76 | id: 'settings.app.form.hibernationStrategy', | 76 | id: 'settings.app.form.hibernationStrategy', |
77 | defaultMessage: '!!!Hibernation strategy', | 77 | defaultMessage: '!!!Hibernation strategy', |
78 | }, | 78 | }, |
79 | server: { | ||
80 | id: 'settings.app.form.server', | ||
81 | defaultMessage: '!!!Server', | ||
82 | }, | ||
83 | todoServer: { | 79 | todoServer: { |
84 | id: 'settings.app.form.todoServer', | 80 | id: 'settings.app.form.todoServer', |
85 | defaultMessage: '!!!Todo Server', | 81 | defaultMessage: '!!!Todo Server', |
@@ -207,7 +203,6 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
207 | sentry: settingsData.sentry, | 203 | sentry: settingsData.sentry, |
208 | hibernate: settingsData.hibernate, | 204 | hibernate: settingsData.hibernate, |
209 | hibernationStrategy: settingsData.hibernationStrategy, | 205 | hibernationStrategy: settingsData.hibernationStrategy, |
210 | server: settingsData.server, | ||
211 | todoServer: settingsData.todoServer, | 206 | todoServer: settingsData.todoServer, |
212 | lockingFeatureEnabled: settingsData.lockingFeatureEnabled, | 207 | lockingFeatureEnabled: settingsData.lockingFeatureEnabled, |
213 | lockedPassword: settingsData.lockedPassword, | 208 | lockedPassword: settingsData.lockedPassword, |
@@ -359,11 +354,6 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
359 | options: hibernationStrategies, | 354 | options: hibernationStrategies, |
360 | default: DEFAULT_APP_SETTINGS.hibernationStrategy, | 355 | default: DEFAULT_APP_SETTINGS.hibernationStrategy, |
361 | }, | 356 | }, |
362 | server: { | ||
363 | label: intl.formatMessage(messages.server), | ||
364 | value: settings.all.app.server || API, | ||
365 | default: API, | ||
366 | }, | ||
367 | todoServer: { | 357 | todoServer: { |
368 | label: intl.formatMessage(messages.todoServer), | 358 | label: intl.formatMessage(messages.todoServer), |
369 | value: settings.all.app.todoServer, | 359 | value: settings.all.app.todoServer, |