Skip to content
Snippets Groups Projects
Commit e775d2a5 authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

style(sign-up): minor changes to the signup and reset password flows

parent e0ae33d4
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,6 @@ import { reduxForm } from 'redux-form'
import { get, isUndefined } from 'lodash'
import { required as requiredValidator } from 'xpub-validators'
import { Menu, Button, Checkbox, TextField, ValidatedField } from '@pubsweet/ui'
import styled from 'styled-components'
import {
Row,
......@@ -27,9 +26,6 @@ const AgreeCheckbox = ({ value, onChange }) => (
</Text>
</Row>
)
const ValidationRow = styled(Row)`
justify-content: left;
`
const Step0 = ({
type,
......@@ -102,13 +98,13 @@ const Step0 = ({
</Item>
</Row>
<ValidationRow data-test-id="sign-up-agree-TC" mb={2}>
<Row data-test-id="sign-up-agree-TC" justify="flex-start" mb={2}>
<ValidatedField
component={AgreeCheckbox}
name="agreeTC"
validate={[requiredValidator]}
/>
</ValidationRow>
</Row>
<Row>
<Text secondary small>
......@@ -127,6 +123,7 @@ const Step0 = ({
data-test-id="sign-up-proceed-to-set-email-and-password"
mt={4}
onClick={handleSubmit}
primary
>
PROCEED TO SET {type === 'signup' && 'EMAIL AND'} PASSWORD
</Button>
......
......@@ -99,7 +99,7 @@ const Step1 = ({
{type === 'forgotPassword' && <ForgotEmailForm />}
{type === 'invite' && <InviteForm />}
{error && (
<Row justify="flex-start" mb={1}>
<Row justify="flex-start" mb={2}>
<Text error>{error}</Text>
</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