aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/auth')
-rw-r--r--src/components/auth/Import.js1
-rw-r--r--src/components/auth/Login.js8
-rw-r--r--src/components/auth/Signup.js7
3 files changed, 15 insertions, 1 deletions
diff --git a/src/components/auth/Import.js b/src/components/auth/Import.js
index cf83aa9c8..06493a0fd 100644
--- a/src/components/auth/Import.js
+++ b/src/components/auth/Import.js
@@ -99,7 +99,6 @@ export default class Import extends Component {
99 <tr 99 <tr
100 key={service.id} 100 key={service.id}
101 className="service-table__row" 101 className="service-table__row"
102 onClick={() => service.$('add').set(!service.$('add').value)}
103 > 102 >
104 <td className="service-table__toggle"> 103 <td className="service-table__toggle">
105 <Toggle 104 <Toggle
diff --git a/src/components/auth/Login.js b/src/components/auth/Login.js
index 015079f02..67e92849d 100644
--- a/src/components/auth/Login.js
+++ b/src/components/auth/Login.js
@@ -3,11 +3,14 @@ import PropTypes from 'prop-types';
3import { observer } from 'mobx-react'; 3import { observer } from 'mobx-react';
4import { defineMessages, intlShape } from 'react-intl'; 4import { defineMessages, intlShape } from 'react-intl';
5 5
6import { isDevMode, useLiveAPI } from '../../environment';
6import Form from '../../lib/Form'; 7import Form from '../../lib/Form';
7import { required, email } from '../../helpers/validation-helpers'; 8import { required, email } from '../../helpers/validation-helpers';
8import Input from '../ui/Input'; 9import Input from '../ui/Input';
9import Button from '../ui/Button'; 10import Button from '../ui/Button';
10import Link from '../ui/Link'; 11import Link from '../ui/Link';
12import Infobox from '../ui/Infobox';
13
11 14
12import { globalError as globalErrorPropType } from '../../prop-types'; 15import { globalError as globalErrorPropType } from '../../prop-types';
13 16
@@ -117,6 +120,11 @@ export default class Login extends Component {
117 alt="" 120 alt=""
118 /> 121 />
119 <h1>{intl.formatMessage(messages.headline)}</h1> 122 <h1>{intl.formatMessage(messages.headline)}</h1>
123 {isDevMode && !useLiveAPI && (
124 <Infobox type="warning">
125 In Dev Mode your data is not persistent. Please use the live app for accesing the production API.
126 </Infobox>
127 )}
120 {isTokenExpired && ( 128 {isTokenExpired && (
121 <p className="error-message center">{intl.formatMessage(messages.tokenExpired)}</p> 129 <p className="error-message center">{intl.formatMessage(messages.tokenExpired)}</p>
122 )} 130 )}
diff --git a/src/components/auth/Signup.js b/src/components/auth/Signup.js
index 71ca16111..a990a112e 100644
--- a/src/components/auth/Signup.js
+++ b/src/components/auth/Signup.js
@@ -3,12 +3,14 @@ import PropTypes from 'prop-types';
3import { observer } from 'mobx-react'; 3import { observer } from 'mobx-react';
4import { defineMessages, intlShape } from 'react-intl'; 4import { defineMessages, intlShape } from 'react-intl';
5 5
6import { isDevMode, useLiveAPI } from '../../environment';
6import Form from '../../lib/Form'; 7import Form from '../../lib/Form';
7import { required, email, minLength } from '../../helpers/validation-helpers'; 8import { required, email, minLength } from '../../helpers/validation-helpers';
8import Input from '../ui/Input'; 9import Input from '../ui/Input';
9import Radio from '../ui/Radio'; 10import Radio from '../ui/Radio';
10import Button from '../ui/Button'; 11import Button from '../ui/Button';
11import Link from '../ui/Link'; 12import Link from '../ui/Link';
13import Infobox from '../ui/Infobox';
12 14
13import { globalError as globalErrorPropType } from '../../prop-types'; 15import { globalError as globalErrorPropType } from '../../prop-types';
14 16
@@ -145,6 +147,11 @@ export default class Signup extends Component {
145 alt="" 147 alt=""
146 /> 148 />
147 <h1>{intl.formatMessage(messages.headline)}</h1> 149 <h1>{intl.formatMessage(messages.headline)}</h1>
150 {isDevMode && !useLiveAPI && (
151 <Infobox type="warning">
152 In Dev Mode your data is not persistent. Please use the live app for accesing the production API.
153 </Infobox>
154 )}
148 <Radio field={form.$('accountType')} showLabel={false} /> 155 <Radio field={form.$('accountType')} showLabel={false} />
149 <div className="grid__row"> 156 <div className="grid__row">
150 <Input field={form.$('firstname')} focus /> 157 <Input field={form.$('firstname')} focus />