import React from 'react'; import PropTypes from 'prop-types'; import Icon from './Icon'; import Modal from './Modal'; export default class LoginButton extends React.Component { constructor(props) { super(props); this.state = { isOpen: false }; } toggleModal(event) { event.preventDefault() this.setState({ isOpen: !this.state.isOpen }); } render() { return ( {this.props.title}

Please, introduce yourself:

Login with facebook Login with VK

Already registered?



); } } LoginButton.propTypes = { title: PropTypes.string.isRequired, onAuth: PropTypes.func.isRequired };