import React, { PropTypes } from 'react'; import { Link } from 'react-router'; import { Button, Row, Col } from 'react-bootstrap'; import FA from 'react-fontawesome'; import classnames from 'classnames'; const propTypes = { email: PropTypes.string, sendMonthlyEmail: PropTypes.bool, sendNotificationEmail: PropTypes.bool, sendQuincyEmail: PropTypes.bool, toggleMonthlyEmail: PropTypes.func.isRequired, toggleNotificationEmail: PropTypes.func.isRequired, toggleQuincyEmail: PropTypes.func.isRequired }; export function UpdateEmailButton() { return ( ); } export default function EmailSettings({ email, sendMonthlyEmail, sendNotificationEmail, sendQuincyEmail, toggleMonthlyEmail, toggleNotificationEmail, toggleQuincyEmail }) { if (!email) { return (

You don't have an email id associated to this account.

); } return (

{ email }

Send me announcement emails
(we'll send you these every Thursday)

Send me notification emails
(these will pertain to your account)

Send me Quincy's weekly email
(with new articles every Tuesday)

); } EmailSettings.displayName = 'EmailSettings'; EmailSettings.propTypes = propTypes;