import React from 'react'; import Modal from 'react-modal'; import styled from 'styled-components' import { PassInput } from './Inputs' import Error from './Err'; const modalStyles = { content: { top: '50%', left: '50%', transform: 'translate(-50%, -50%)', width: '400px', height: '250px', border: '1px solid #11111188' } }; const PassProtected = styled.h3` font-weight: 700 ` const RightPad = styled.div` margin-right: 3em; ` const LeftPad = styled.div` margin-left: 2em; ` class PasswordModal extends React.Component { componentWillMount() { Modal.setAppElement('body'); } constructor(props) { super(props); this.submitPassword = this.submitPassword.bind(this); } submitPassword(event) { const password = this.props.value this.props.validateCallback(password) event.preventDefault(); } render() { return(
🚧 err: password protected
); } } export default PasswordModal