From c875cb06d0badfb945a1784e90be2ee8fca0b7e1 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 8 Sep 2021 04:38:56 +0530 Subject: refactor: merge common i18n strings [skip ci] --- src/components/layout/Sidebar.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/components/layout/Sidebar.js') 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'; import { todoActions } from '../../features/todos/actions'; import AppStore from '../../stores/AppStore'; import SettingsStore from '../../stores/SettingsStore'; +import globalMessages from '../../i18n/globalMessages'; const messages = defineMessages({ - settings: { - id: 'sidebar.settings', - defaultMessage: '!!!Settings', - }, addNewService: { id: 'sidebar.addNewService', defaultMessage: '!!!Add new service', @@ -215,7 +212,7 @@ export default @inject('stores', 'actions') @observer class Sidebar extends Comp type="button" onClick={() => openSettings({ path: 'app' })} className="sidebar__button sidebar__button--settings" - data-tip={`${intl.formatMessage(messages.settings)} (${settingsShortcutKey(false)})`} + data-tip={`${intl.formatMessage(globalMessages.settings)} (${settingsShortcutKey(false)})`} > { (this.props.stores.app.updateStatus === this.props.stores.app.updateStatusTypes.AVAILABLE -- cgit v1.2.3-70-g09d2