Skip to content
Snippets Groups Projects
Commit c17d81d0 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

style(signup): disable submit button on form submit

parent 6e8be203
No related branches found
No related tags found
2 merge requests!13Sprint #14,!12Signup functionality
......@@ -65,7 +65,13 @@ const Step0 = ({ journal, handleSubmit, initialValues, error }) =>
/>
<DefaultText>
By creating this account, you agree to the{' '}
<a href="https://www.hindawi.com/terms/">Terms of Service</a>.
<a
href="https://www.hindawi.com/terms/"
rel="noopener noreferrer"
target="_blank"
>
Terms of Service
</a>.
</DefaultText>
</Row>
<Row>
......@@ -74,8 +80,14 @@ const Step0 = ({ journal, handleSubmit, initialValues, error }) =>
our Privacy Policy for the purpose of registering your Faraday account
and allowing you to use the services available via the Faraday
platform. Please read our{' '}
<a href="https://www.hindawi.com/privacy/">Privacy Policy</a> for
further information.
<a
href="https://www.hindawi.com/privacy/"
rel="noopener noreferrer"
target="_blank"
>
Privacy Policy
</a>{' '}
for further information.
</PrivatePolicy>
</Row>
<Row>
......
......@@ -11,7 +11,7 @@ const { Row, Err, Label, RowItem, FormContainer } = FormItems
const PasswordField = input => <TextField {...input} type="password" />
const EmailField = input => <TextField {...input} type="email" />
const Step1 = ({ handleSubmit, error, type, prevStep }) => (
const Step1 = ({ handleSubmit, error, type, prevStep, submitting }) => (
<FormContainer onSubmit={handleSubmit}>
{type === 'signup' && (
<Row>
......@@ -56,7 +56,7 @@ const Step1 = ({ handleSubmit, error, type, prevStep }) => (
<Button onClick={prevStep} type="button">
BACK
</Button>
<Button primary type="submit">
<Button disabled={submitting} primary type="submit">
CONFIRM
</Button>
</Row>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment