in app/addons/auth/components/passwordmodal.js [42:77]
render() {
const {
visible,
onClose,
submitBtnLabel,
headerTitle,
modalMessage
} = this.props;
if (!this.props.visible) {
return null;
}
return (
<Modal
dialogClassName="enter-password-modal"
show={visible}
onHide={() => onClose()}
>
<Modal.Header closeButton={true}>
<Modal.Title>{headerTitle}</Modal.Title>
</Modal.Header>
<Modal.Body>
{modalMessage}
<input
style={{ width: "385px" }}
type="password"
className="password-modal-input"
placeholder="Enter your password"
autoFocus={true}
value={this.state.password}
onChange={e => this.setState({ password: e.target.value })}
onKeyPress={this.onKeyPress}
/>
</Modal.Body>
<Modal.Footer>
<Button href="#" data-bypass="true" variant="cf-cancel" className="cancel-link" onClick={() => onClose()}>Cancel</Button>