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).
28 lines
535 B
JavaScript
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;
|