diff options
Diffstat (limited to 'src/components/auth/Signup.js')
-rw-r--r-- | src/components/auth/Signup.js | 8 |
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'; | |||
4 | import { observer, inject } from 'mobx-react'; | 4 | import { observer, inject } from 'mobx-react'; |
5 | import { defineMessages, intlShape } from 'react-intl'; | 5 | import { defineMessages, intlShape } from 'react-intl'; |
6 | 6 | ||
7 | import { isDevMode, useLiveAPI } from '../../environment'; | 7 | import { isDevMode, termsBase, useLiveAPI } from '../../environment'; |
8 | import Form from '../../lib/Form'; | 8 | import Form from '../../lib/Form'; |
9 | import { required, email, minLength } from '../../helpers/validation-helpers'; | 9 | import { required, email, minLength } from '../../helpers/validation-helpers'; |
10 | import serverlessLogin from '../../helpers/serverless-helpers'; | 10 | import 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 | & | 190 | & |
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 | > |