diff options
author | 2022-07-19 12:52:31 +0100 | |
---|---|---|
committer | 2022-07-19 12:52:31 +0100 | |
commit | 3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165 (patch) | |
tree | 6b414b9ef3be7656da1717b0d6def62e95d1fb90 /src/components/settings/navigation/SettingsNavigation.jsx | |
parent | fix: remove autoHibernate (diff) | |
download | ferdium-app-3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165.tar.gz ferdium-app-3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165.tar.zst ferdium-app-3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165.zip |
Feature: Add Release Notes (#491)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Co-authored-by: Ricardo Cino <ricardo@cino.io>
Diffstat (limited to 'src/components/settings/navigation/SettingsNavigation.jsx')
-rw-r--r-- | src/components/settings/navigation/SettingsNavigation.jsx | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/components/settings/navigation/SettingsNavigation.jsx b/src/components/settings/navigation/SettingsNavigation.jsx index bbbe8d888..e1242a7fe 100644 --- a/src/components/settings/navigation/SettingsNavigation.jsx +++ b/src/components/settings/navigation/SettingsNavigation.jsx | |||
@@ -5,7 +5,11 @@ import { inject, observer } from 'mobx-react'; | |||
5 | import { RouterStore } from '@superwf/mobx-react-router'; | 5 | import { RouterStore } from '@superwf/mobx-react-router'; |
6 | 6 | ||
7 | import { NavLink } from 'react-router-dom'; | 7 | import { NavLink } from 'react-router-dom'; |
8 | import { LOCAL_SERVER, LIVE_FERDIUM_API, LIVE_FRANZ_API } from '../../../config'; | 8 | import { |
9 | LOCAL_SERVER, | ||
10 | LIVE_FERDIUM_API, | ||
11 | LIVE_FRANZ_API, | ||
12 | } from '../../../config'; | ||
9 | import UIStore from '../../../stores/UIStore'; | 13 | import UIStore from '../../../stores/UIStore'; |
10 | import SettingsStore from '../../../stores/SettingsStore'; | 14 | import SettingsStore from '../../../stores/SettingsStore'; |
11 | import UserStore from '../../../stores/UserStore'; | 15 | import UserStore from '../../../stores/UserStore'; |
@@ -32,6 +36,10 @@ const messages = defineMessages({ | |||
32 | id: 'settings.navigation.team', | 36 | id: 'settings.navigation.team', |
33 | defaultMessage: 'Manage Team', | 37 | defaultMessage: 'Manage Team', |
34 | }, | 38 | }, |
39 | releaseNotes: { | ||
40 | id: 'settings.navigation.releaseNotes', | ||
41 | defaultMessage: 'Release Notes', | ||
42 | }, | ||
35 | supportFerdium: { | 43 | supportFerdium: { |
36 | id: 'settings.navigation.supportFerdium', | 44 | id: 'settings.navigation.supportFerdium', |
37 | defaultMessage: 'About Ferdium', | 45 | defaultMessage: 'About Ferdium', |
@@ -165,6 +173,16 @@ class SettingsNavigation extends Component { | |||
165 | )} | 173 | )} |
166 | </NavLink> | 174 | </NavLink> |
167 | <NavLink | 175 | <NavLink |
176 | to="/settings/releasenotes" | ||
177 | className={({ isActive }) => | ||
178 | isActive | ||
179 | ? 'settings-navigation__link is-active' | ||
180 | : 'settings-navigation__link' | ||
181 | } | ||
182 | > | ||
183 | {intl.formatMessage(messages.releaseNotes)} | ||
184 | </NavLink> | ||
185 | <NavLink | ||
168 | to="/settings/support" | 186 | to="/settings/support" |
169 | className={({ isActive }) => | 187 | className={({ isActive }) => |
170 | isActive | 188 | isActive |
@@ -190,4 +208,6 @@ class SettingsNavigation extends Component { | |||
190 | } | 208 | } |
191 | } | 209 | } |
192 | 210 | ||
193 | export default injectIntl(inject('stores', 'actions')(observer(SettingsNavigation))); | 211 | export default injectIntl( |
212 | inject('stores', 'actions')(observer(SettingsNavigation)), | ||
213 | ); | ||