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/auth/ChangeServer.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/components/auth/ChangeServer.js')
-rw-r--r-- | src/components/auth/ChangeServer.js | 5 |
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'; | |||
8 | import Button from '../ui/Button'; | 8 | import Button from '../ui/Button'; |
9 | import Infobox from '../ui/Infobox'; | 9 | import Infobox from '../ui/Infobox'; |
10 | import { url, required } from '../../helpers/validation-helpers'; | 10 | import { url, required } from '../../helpers/validation-helpers'; |
11 | import { LIVE_FERDI_API, LIVE_FRANZ_API } from '../../config'; | ||
11 | 12 | ||
12 | const messages = defineMessages({ | 13 | const 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 | ||