diff options
author | 2021-06-05 16:28:45 +0530 | |
---|---|---|
committer | 2021-06-05 12:58:45 +0200 | |
commit | aa6689e6158efde28b68948cd8b67d55080158d2 (patch) | |
tree | 6e687fb7b5e2eb37c0027ba31d968b04632f5771 /src/containers/settings/TeamScreen.js | |
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/containers/settings/TeamScreen.js')
-rw-r--r-- | src/containers/settings/TeamScreen.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/containers/settings/TeamScreen.js b/src/containers/settings/TeamScreen.js index 3e21ca2d9..c1360a666 100644 --- a/src/containers/settings/TeamScreen.js +++ b/src/containers/settings/TeamScreen.js | |||
@@ -8,12 +8,13 @@ import SettingsStore from '../../stores/SettingsStore'; | |||
8 | 8 | ||
9 | import TeamDashboard from '../../components/settings/team/TeamDashboard'; | 9 | import TeamDashboard from '../../components/settings/team/TeamDashboard'; |
10 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 10 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
11 | import { DEV_API_FRANZ_WEBSITE } from '../../config'; | ||
11 | 12 | ||
12 | export default @inject('stores', 'actions') @observer class TeamScreen extends Component { | 13 | export default @inject('stores', 'actions') @observer class TeamScreen extends Component { |
13 | handleWebsiteLink(route) { | 14 | handleWebsiteLink(route) { |
14 | const { actions, stores } = this.props; | 15 | const { actions, stores } = this.props; |
15 | 16 | ||
16 | const url = `https://meetfranz.com/${route}?authToken=${stores.user.authToken}&utm_source=app&utm_medium=account_dashboard`; | 17 | const url = `${DEV_API_FRANZ_WEBSITE}/${route}?authToken=${stores.user.authToken}&utm_source=app&utm_medium=account_dashboard`; |
17 | 18 | ||
18 | actions.app.openExternalUrl({ url }); | 19 | actions.app.openExternalUrl({ url }); |
19 | } | 20 | } |