import React from 'react'; import PropTypes from 'prop-types'; import { withTranslation } from 'react-i18next'; import { Modal, ModalHeader, ModalBody, } from 'reactstrap'; import { createSubscribedElement } from '../../UnstatedUtils'; import AppContainer from '../../../services/AppContainer'; import AdminLdapSecurityContainer from '../../../services/AdminLdapSecurityContainer'; 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 = { t: PropTypes.func.isRequired, // i18next appContainer: PropTypes.instanceOf(AppContainer).isRequired, adminLdapSecurityContainer: PropTypes.instanceOf(AdminLdapSecurityContainer).isRequired, isOpen: PropTypes.bool.isRequired, onClose: PropTypes.func.isRequired, }; const LdapAuthTestModalWrapper = (props) => { return createSubscribedElement(LdapAuthTestModal, props, [AppContainer, AdminLdapSecurityContainer]); }; export default withTranslation()(LdapAuthTestModalWrapper);