Ghost/ghost/members-api/static/auth/pages/RequestPasswordResetPage.js
2019-05-07 17:35:17 +02:00

16 lines
593 B
JavaScript

import FormHeader from '../components/FormHeader';
import EmailInput from '../components/EmailInput';
import FormSubmit from '../components/FormSubmit';
import Form from '../components/Form';
export default ({ error, handleClose, handleSubmit }) => (
<div className="gm-modal-form">
<FormHeader title="Reset password" error={error} errorText="Unable to send email" />
<Form bindTo="request-password-reset" onSubmit={handleSubmit}>
<EmailInput bindTo="email" />
<FormSubmit label="Send reset password instructions" />
</Form>
</div>
);