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 }) => ...@@ -65,7 +65,13 @@ const Step0 = ({ journal, handleSubmit, initialValues, error }) =>
/> />
<DefaultText> <DefaultText>
By creating this account, you agree to the{' '} 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> </DefaultText>
</Row> </Row>
<Row> <Row>
...@@ -74,8 +80,14 @@ const Step0 = ({ journal, handleSubmit, initialValues, error }) => ...@@ -74,8 +80,14 @@ const Step0 = ({ journal, handleSubmit, initialValues, error }) =>
our Privacy Policy for the purpose of registering your Faraday account our Privacy Policy for the purpose of registering your Faraday account
and allowing you to use the services available via the Faraday and allowing you to use the services available via the Faraday
platform. Please read our{' '} platform. Please read our{' '}
<a href="https://www.hindawi.com/privacy/">Privacy Policy</a> for <a
further information. href="https://www.hindawi.com/privacy/"
rel="noopener noreferrer"
target="_blank"
>
Privacy Policy
</a>{' '}
for further information.
</PrivatePolicy> </PrivatePolicy>
</Row> </Row>
<Row> <Row>
......
...@@ -11,7 +11,7 @@ const { Row, Err, Label, RowItem, FormContainer } = FormItems ...@@ -11,7 +11,7 @@ const { Row, Err, Label, RowItem, FormContainer } = FormItems
const PasswordField = input => <TextField {...input} type="password" /> const PasswordField = input => <TextField {...input} type="password" />
const EmailField = input => <TextField {...input} type="email" /> const EmailField = input => <TextField {...input} type="email" />
const Step1 = ({ handleSubmit, error, type, prevStep }) => ( const Step1 = ({ handleSubmit, error, type, prevStep, submitting }) => (
<FormContainer onSubmit={handleSubmit}> <FormContainer onSubmit={handleSubmit}>
{type === 'signup' && ( {type === 'signup' && (
<Row> <Row>
...@@ -56,7 +56,7 @@ const Step1 = ({ handleSubmit, error, type, prevStep }) => ( ...@@ -56,7 +56,7 @@ const Step1 = ({ handleSubmit, error, type, prevStep }) => (
<Button onClick={prevStep} type="button"> <Button onClick={prevStep} type="button">
BACK BACK
</Button> </Button>
<Button primary type="submit"> <Button disabled={submitting} primary type="submit">
CONFIRM CONFIRM
</Button> </Button>
</Row> </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