aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth/Signup.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/Signup.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/Signup.js')
-rw-r--r--src/components/auth/Signup.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/auth/Signup.js b/src/components/auth/Signup.js
index 6a7db5cde..140867ea1 100644
--- a/src/components/auth/Signup.js
+++ b/src/components/auth/Signup.js
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
4import { observer, inject } from 'mobx-react'; 4import { observer, inject } from 'mobx-react';
5import { defineMessages, intlShape } from 'react-intl'; 5import { defineMessages, intlShape } from 'react-intl';
6 6
7import { isDevMode, useLiveAPI } from '../../environment'; 7import { isDevMode, termsBase, useLiveAPI } from '../../environment';
8import Form from '../../lib/Form'; 8import Form from '../../lib/Form';
9import { required, email, minLength } from '../../helpers/validation-helpers'; 9import { required, email, minLength } from '../../helpers/validation-helpers';
10import serverlessLogin from '../../helpers/serverless-helpers'; 10import serverlessLogin from '../../helpers/serverless-helpers';
@@ -135,8 +135,6 @@ export default @inject('actions') @observer class Signup extends Component {
135 isSubmitting, loginRoute, error, changeServerRoute, 135 isSubmitting, loginRoute, error, changeServerRoute,
136 } = this.props; 136 } = this.props;
137 137
138 const termsBase = window.ferdi.stores.settings.all.app.server !== 'https://api.franzinfra.com' ? window.ferdi.stores.settings.all.app.server : 'https://meetfranz.com';
139
140 return ( 138 return (
141 <div className="auth__scroll-container"> 139 <div className="auth__scroll-container">
142 <div className="auth__container auth__container--signup"> 140 <div className="auth__container auth__container--signup">
@@ -183,7 +181,7 @@ export default @inject('actions') @observer class Signup extends Component {
183 {intl.formatMessage(messages.legalInfo)} 181 {intl.formatMessage(messages.legalInfo)}
184 <br /> 182 <br />
185 <Link 183 <Link
186 to={`${termsBase}/terms`} 184 to={`${termsBase()}/terms`}
187 target="_blank" 185 target="_blank"
188 className="link" 186 className="link"
189 > 187 >
@@ -191,7 +189,7 @@ export default @inject('actions') @observer class Signup extends Component {
191 </Link> 189 </Link>
192 &nbsp;&amp;&nbsp; 190 &nbsp;&amp;&nbsp;
193 <Link 191 <Link
194 to={`${termsBase}/privacy`} 192 to={`${termsBase()}/privacy`}
195 target="_blank" 193 target="_blank"
196 className="link" 194 className="link"
197 > 195 >