aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth/ChangeServer.js
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-06-05 16:28:45 +0530
committerLibravatar GitHub <noreply@github.com>2021-06-05 12:58:45 +0200
commitaa6689e6158efde28b68948cd8b67d55080158d2 (patch)
tree6e687fb7b5e2eb37c0027ba31d968b04632f5771 /src/components/auth/ChangeServer.js
parentReused commonly defined method for 'apiBase' (diff)
downloadferdium-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/auth/ChangeServer.js')
-rw-r--r--src/components/auth/ChangeServer.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/auth/ChangeServer.js b/src/components/auth/ChangeServer.js
index 68c2303a4..0dedd825a 100644
--- a/src/components/auth/ChangeServer.js
+++ b/src/components/auth/ChangeServer.js
@@ -8,6 +8,7 @@ import Select from '../ui/Select';
8import Button from '../ui/Button'; 8import Button from '../ui/Button';
9import Infobox from '../ui/Infobox'; 9import Infobox from '../ui/Infobox';
10import { url, required } from '../../helpers/validation-helpers'; 10import { url, required } from '../../helpers/validation-helpers';
11import { LIVE_FERDI_API, LIVE_FRANZ_API } from '../../config';
11 12
12const messages = defineMessages({ 13const messages = defineMessages({
13 headline: { 14 headline: {
@@ -47,9 +48,9 @@ export default @observer class ChangeServer extends Component {
47 intl: intlShape, 48 intl: intlShape,
48 }; 49 };
49 50
50 ferdiServer='https://api.getferdi.com'; 51 ferdiServer=LIVE_FERDI_API;
51 52
52 franzServer='https://api.franzinfra.com'; 53 franzServer=LIVE_FRANZ_API;
53 54
54 defaultServers=[this.franzServer, this.ferdiServer]; 55 defaultServers=[this.franzServer, this.ferdiServer];
55 56