Files
edx-platform/lms/static/js/student_account/components/PasswordResetInput.jsx
Michael Terry c19d01a994 Add live validation to password reset
Adds a new React factory for that page to handle the logic. Also
cleans up the UI a little (centers it, stops using serif font, etc).
2018-04-05 11:59:26 -04:00

28 lines
535 B
JavaScript

/* globals gettext */
import PropTypes from 'prop-types';
import React from 'react';
import { InputText } from '@edx/paragon/static';
function PasswordResetInput(props) {
return (
<div className="form-field">
<InputText
id={props.name}
type="password"
themes={['danger']}
dangerIconDescription={gettext('Error: ')}
required
{...props}
/>
</div>
);
}
PasswordResetInput.propTypes = {
name: PropTypes.string.isRequired,
};
export default PasswordResetInput;