import React from 'react'; import { Link } from 'react-router'; import { If, Case } from '/imports/client/components/Logic'; import { Bert } from 'meteor/themeteorchef:bert'; import { Row, Col, Alert,ControlLabel, FormGroup, FormControl, Button } from 'react-bootstrap'; export class EmailPane extends React.Component { constructor(props) { super(props); this.state = { email: props.user.emails[0].address, form: false, }; }; onUpdate(key, val) { this.setState({[key]: val}); }; onSetEmail() { startEmailVerification.call({email: this.state.email}, (err, res)=>{ Bert.alert('New verification email sent!', 'success'); }); this.setState({form: false}); }; onShowForm() { this.setState({form: true}); }; renderForm() { const {user} = this.props; return (