Fix PR feedback

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-05-28 14:52:44 +02:00 committed by Alexandre Bodin
parent 61bcfb58d0
commit d5abc0a47b
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,6 @@
import React from 'react';
import { useIntl } from 'react-intl';
import { Padded } from '@buffetjs/core';
import PropTypes from 'prop-types';
import BaselineAlignment from '../../../../components/BaselineAlignement';
import Button from '../../../../components/FullWidthButton';
@ -32,11 +33,12 @@ const ForgotPassword = ({ formErrors, modifiedData, onChange, onSubmit }) => {
validations={{ required: true }}
value={modifiedData.email}
/>
<BaselineAlignment top size="13px">
<BaselineAlignment top size="3px" />
<Padded top>
<Button type="submit" color="primary" textTransform="uppercase">
{formatMessage({ id: 'Auth.form.button.forgot-password' })}
</Button>
</BaselineAlignment>
</Padded>
</form>
</Box>
</BaselineAlignment>

View File

@ -1,5 +1,6 @@
import React from 'react';
import { useIntl } from 'react-intl';
import { Padded } from '@buffetjs/core';
import { get } from 'lodash';
import PropTypes from 'prop-types';
import BaselineAlignment from '../../../../components/BaselineAlignement';
@ -41,11 +42,12 @@ const ResetPassword = ({ formErrors, modifiedData, onChange, onSubmit, requestEr
validations={{ required: true }}
value={modifiedData.confirmPassword}
/>
<BaselineAlignment top size="13px">
<BaselineAlignment top size="3px" />
<Padded top>
<Button type="submit" color="primary" textTransform="uppercase">
{formatMessage({ id: 'Auth.form.button.reset-password' })}
</Button>
</BaselineAlignment>
</Padded>
</form>
</Box>
</BaselineAlignment>