* fix: migrate remaining eslint-config-edx * refactor: updated eslint rules according to eslint-config-edx-es5 * refactor: add custom rules to suppress unnecessary eslint issues * refactor: add custom rules to internal eslint configs * fix: fix all indentation issues * chore: update lock file
28 lines
609 B
JavaScript
28 lines
609 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;
|