aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-08 04:38:56 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-08 05:11:37 +0530
commitc875cb06d0badfb945a1784e90be2ee8fca0b7e1 (patch)
tree61fade08770c19dd9e4e9a7bbe2b92551a4db0d0 /src/components/layout
parentfix: black screen in macOS when closing to systray in fullscreen mode (#1883) (diff)
downloadferdium-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.js7
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';
12import { todoActions } from '../../features/todos/actions'; 12import { todoActions } from '../../features/todos/actions';
13import AppStore from '../../stores/AppStore'; 13import AppStore from '../../stores/AppStore';
14import SettingsStore from '../../stores/SettingsStore'; 14import SettingsStore from '../../stores/SettingsStore';
15import globalMessages from '../../i18n/globalMessages';
15 16
16const messages = defineMessages({ 17const 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