diff options
author | 2021-09-08 04:38:56 +0530 | |
---|---|---|
committer | 2021-09-08 05:11:37 +0530 | |
commit | c875cb06d0badfb945a1784e90be2ee8fca0b7e1 (patch) | |
tree | 61fade08770c19dd9e4e9a7bbe2b92551a4db0d0 /src/components/layout | |
parent | fix: black screen in macOS when closing to systray in fullscreen mode (#1883) (diff) | |
download | ferdium-app-c875cb06d0badfb945a1784e90be2ee8fca0b7e1.tar.gz ferdium-app-c875cb06d0badfb945a1784e90be2ee8fca0b7e1.tar.zst ferdium-app-c875cb06d0badfb945a1784e90be2ee8fca0b7e1.zip |
refactor: merge common i18n strings [skip ci]
Diffstat (limited to 'src/components/layout')
-rw-r--r-- | src/components/layout/Sidebar.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/components/layout/Sidebar.js b/src/components/layout/Sidebar.js index 935966764..1ee7733b9 100644 --- a/src/components/layout/Sidebar.js +++ b/src/components/layout/Sidebar.js | |||
@@ -12,12 +12,9 @@ import { todosStore } from '../../features/todos'; | |||
12 | import { todoActions } from '../../features/todos/actions'; | 12 | import { todoActions } from '../../features/todos/actions'; |
13 | import AppStore from '../../stores/AppStore'; | 13 | import AppStore from '../../stores/AppStore'; |
14 | import SettingsStore from '../../stores/SettingsStore'; | 14 | import SettingsStore from '../../stores/SettingsStore'; |
15 | import globalMessages from '../../i18n/globalMessages'; | ||
15 | 16 | ||
16 | const messages = defineMessages({ | 17 | const messages = defineMessages({ |
17 | settings: { | ||
18 | id: 'sidebar.settings', | ||
19 | defaultMessage: '!!!Settings', | ||
20 | }, | ||
21 | addNewService: { | 18 | addNewService: { |
22 | id: 'sidebar.addNewService', | 19 | id: 'sidebar.addNewService', |
23 | defaultMessage: '!!!Add new service', | 20 | defaultMessage: '!!!Add new service', |
@@ -215,7 +212,7 @@ export default @inject('stores', 'actions') @observer class Sidebar extends Comp | |||
215 | type="button" | 212 | type="button" |
216 | onClick={() => openSettings({ path: 'app' })} | 213 | onClick={() => openSettings({ path: 'app' })} |
217 | className="sidebar__button sidebar__button--settings" | 214 | className="sidebar__button sidebar__button--settings" |
218 | data-tip={`${intl.formatMessage(messages.settings)} (${settingsShortcutKey(false)})`} | 215 | data-tip={`${intl.formatMessage(globalMessages.settings)} (${settingsShortcutKey(false)})`} |
219 | > | 216 | > |
220 | <i className="mdi mdi-cog" /> | 217 | <i className="mdi mdi-cog" /> |
221 | { (this.props.stores.app.updateStatus === this.props.stores.app.updateStatusTypes.AVAILABLE | 218 | { (this.props.stores.app.updateStatus === this.props.stores.app.updateStatusTypes.AVAILABLE |