import React, { Component } from 'react'; import {Button, TextField} from 'react-md'; import '../css/Common.css'; import '../css/components/Contact.css'; import {EMAIL_MAX_LENGTH} from '../config/constants'; class Contact extends Component { constructor(props){ super(props); this.state = {contactEmail: props.contactEmail}; this.handleEmailEdit = this.handleEmailEdit.bind(this); } componentWillReceiveProps(props){ this.setState({contactEmail: props.contactEmail}); } render() { return (
Contact address will be used for direct messaging through Alexa






); } handleEmailEdit(e){ if (e.length === EMAIL_MAX_LENGTH) return; this.setState({contactEmail: e}); } } export default Contact;