Skip to content

Commit b59c533

Browse files
committed
Use core button in lost password form
1 parent 44762fc commit b59c533

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

client/blocks/login/lost-password-form.jsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import page from '@automattic/calypso-router';
22
import { FormInputValidation, FormLabel } from '@automattic/components';
3-
import { Spinner } from '@wordpress/components';
3+
import { Button, Spinner } from '@wordpress/components';
44
import { useTranslate } from 'i18n-calypso';
55
import { useState } from 'react';
6-
import FormsButton from 'calypso/components/forms/form-button';
76
import FormTextInput from 'calypso/components/forms/form-text-input';
87
import { login } from 'calypso/lib/paths';
98
import { useDispatch } from 'calypso/state';
@@ -142,9 +141,14 @@ const LostPasswordForm = ( {
142141
{ showError && <FormInputValidation isError text={ error } /> }
143142
</div>
144143
<div className="login__form-action">
145-
<FormsButton primary type="submit" disabled={ email.length === 0 || showError || isBusy }>
144+
<Button
145+
variant="primary"
146+
type="submit"
147+
disabled={ email.length === 0 || showError || isBusy }
148+
__next40pxDefaultSize
149+
>
146150
{ isBusy ? <Spinner /> : translate( 'Reset my password' ) }
147-
</FormsButton>
151+
</Button>
148152
</div>
149153
</form>
150154
);

0 commit comments

Comments
 (0)