'use strict'; import React from 'react'; import Button from 'react-bootstrap/lib/Button'; import Modal from 'react-bootstrap/lib/Modal'; import OverlayMixin from 'react-bootstrap/lib/OverlayMixin'; let LoginModalHandler = React.createClass({ mixins: [OverlayMixin], getInitialState() { return { isModalOpen: true }; }, handleToggle() { this.setState({ isModalOpen: !this.state.isModalOpen }); }, render() { if (!this.state.isModalOpen || !(this.props.query.login === '')) { return ; } return (
This modal is controlled by our custom trigger component.
); } }); export default LoginModalHandler;