diff options
author | 2021-06-05 16:28:45 +0530 | |
---|---|---|
committer | 2021-06-05 12:58:45 +0200 | |
commit | aa6689e6158efde28b68948cd8b67d55080158d2 (patch) | |
tree | 6e687fb7b5e2eb37c0027ba31d968b04632f5771 /src/components/settings/navigation | |
parent | Reused commonly defined method for 'apiBase' (diff) | |
download | ferdium-app-aa6689e6158efde28b68948cd8b67d55080158d2.tar.gz ferdium-app-aa6689e6158efde28b68948cd8b67d55080158d2.tar.zst ferdium-app-aa6689e6158efde28b68948cd8b67d55080158d2.zip |
Removed hardcoded strings and reused constants defined in config.js (#1499)
Diffstat (limited to 'src/components/settings/navigation')
-rw-r--r-- | src/components/settings/navigation/SettingsNavigation.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/settings/navigation/SettingsNavigation.js b/src/components/settings/navigation/SettingsNavigation.js index f7786f4e8..616c8c587 100644 --- a/src/components/settings/navigation/SettingsNavigation.js +++ b/src/components/settings/navigation/SettingsNavigation.js | |||
@@ -5,7 +5,7 @@ import { inject, observer } from 'mobx-react'; | |||
5 | import { ProBadge } from '@meetfranz/ui'; | 5 | import { ProBadge } from '@meetfranz/ui'; |
6 | import { RouterStore } from 'mobx-react-router'; | 6 | import { RouterStore } from 'mobx-react-router'; |
7 | 7 | ||
8 | import { LOCAL_SERVER, LIVE_API } from '../../../config'; | 8 | import { LOCAL_SERVER, LIVE_FERDI_API, LIVE_FRANZ_API } from '../../../config'; |
9 | import Link from '../../ui/Link'; | 9 | import Link from '../../ui/Link'; |
10 | import { workspaceStore } from '../../../features/workspaces'; | 10 | import { workspaceStore } from '../../../features/workspaces'; |
11 | import UIStore from '../../../stores/UIStore'; | 11 | import UIStore from '../../../stores/UIStore'; |
@@ -82,7 +82,7 @@ export default @inject('stores', 'actions') @observer class SettingsNavigation e | |||
82 | this.props.actions.settings.update({ | 82 | this.props.actions.settings.update({ |
83 | type: 'app', | 83 | type: 'app', |
84 | data: { | 84 | data: { |
85 | server: LIVE_API, | 85 | server: LIVE_FERDI_API, |
86 | }, | 86 | }, |
87 | }); | 87 | }); |
88 | } | 88 | } |
@@ -105,7 +105,7 @@ export default @inject('stores', 'actions') @observer class SettingsNavigation e | |||
105 | const { intl } = this.context; | 105 | const { intl } = this.context; |
106 | const isLoggedIn = Boolean(localStorage.getItem('authToken')); | 106 | const isLoggedIn = Boolean(localStorage.getItem('authToken')); |
107 | const isUsingWithoutAccount = stores.settings.app.server === LOCAL_SERVER; | 107 | const isUsingWithoutAccount = stores.settings.app.server === LOCAL_SERVER; |
108 | const isUsingFranzServer = stores.settings.app.server === 'https://api.franzinfra.com'; | 108 | const isUsingFranzServer = stores.settings.app.server === LIVE_FRANZ_API; |
109 | 109 | ||
110 | return ( | 110 | return ( |
111 | <div className="settings-navigation"> | 111 | <div className="settings-navigation"> |