diff options
author | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-06-05 16:28:45 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-05 12:58:45 +0200 |
commit | aa6689e6158efde28b68948cd8b67d55080158d2 (patch) | |
tree | 6e687fb7b5e2eb37c0027ba31d968b04632f5771 /src/components/settings/account | |
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/account')
-rw-r--r-- | src/components/settings/account/AccountDashboard.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js index 809bfda6e..68d88e218 100644 --- a/src/components/settings/account/AccountDashboard.js +++ b/src/components/settings/account/AccountDashboard.js | |||
@@ -11,7 +11,7 @@ import Button from '../../ui/Button'; | |||
11 | import Infobox from '../../ui/Infobox'; | 11 | import Infobox from '../../ui/Infobox'; |
12 | import SubscriptionForm from '../../../containers/subscription/SubscriptionFormScreen'; | 12 | import SubscriptionForm from '../../../containers/subscription/SubscriptionFormScreen'; |
13 | import { i18nPlanName } from '../../../helpers/plan-helpers'; | 13 | import { i18nPlanName } from '../../../helpers/plan-helpers'; |
14 | import { LOCAL_SERVER } from '../../../config'; | 14 | import { LOCAL_SERVER, LIVE_FRANZ_API } from '../../../config'; |
15 | 15 | ||
16 | const messages = defineMessages({ | 16 | const messages = defineMessages({ |
17 | headline: { | 17 | headline: { |
@@ -154,7 +154,7 @@ class AccountDashboard extends Component { | |||
154 | } | 154 | } |
155 | 155 | ||
156 | const isUsingWithoutAccount = server === LOCAL_SERVER; | 156 | const isUsingWithoutAccount = server === LOCAL_SERVER; |
157 | const isUsingFranzServer = server === 'https://api.franzinfra.com'; | 157 | const isUsingFranzServer = server === LIVE_FRANZ_API; |
158 | 158 | ||
159 | return ( | 159 | return ( |
160 | <div className="settings__main"> | 160 | <div className="settings__main"> |