import React from 'react'; import PropTypes from 'prop-types'; import { Modal, ModalHeader, ModalBody, } from 'reactstrap'; import { withUnstatedContainers } from '../../UnstatedUtils'; import { LdapAuthTest } from './LdapAuthTest'; class LdapAuthTestModal extends React.Component { constructor(props) { super(props); this.state = { username: '', password: '', }; this.onChangeUsername = this.onChangeUsername.bind(this); this.onChangePassword = this.onChangePassword.bind(this); } /** * Change username */ onChangeUsername(username) { this.setState({ username }); } /** * Change password */ onChangePassword(password) { this.setState({ password }); } render() { return ( Test LDAP Account ); } } LdapAuthTestModal.propTypes = { isOpen: PropTypes.bool.isRequired, onClose: PropTypes.func.isRequired, }; const LdapAuthTestModalWrapper = withUnstatedContainers(LdapAuthTestModal, []); export default LdapAuthTestModalWrapper;