import PropTypes from 'prop-types'; import React from 'react'; import { ToggleButtonGroup, ToggleButton, Button, Row, Col } from 'react-bootstrap'; import FA from 'react-fontawesome'; import classnames from 'classnames'; import { onRouteUpdateEmail } from './redux'; import { Link } from '../../Router'; 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)

On Off

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

On Off

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

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