import React, { useEffect } from 'react'; import cn from 'classnames'; import stl from './notifications.module.css'; import { Checkbox, Toggler } from 'UI'; import { connect } from 'react-redux'; import { withRequest } from 'HOCs'; import { fetch as fetchConfig, edit as editConfig, save as saveConfig } from 'Duck/config'; import withPageTitle from 'HOCs/withPageTitle'; function Notifications(props) { const { config } = props; useEffect(() => { props.fetchConfig(); }, []); const onChange = () => { const _config = { weeklyReport: !config.weeklyReport }; props.editConfig(_config); props.saveConfig(_config); }; return (
{

{'Notifications'}

}
Weekly project summary
Receive wekly report for each project on email.
{/* */} {/* */}
); } export default connect( (state) => ({ config: state.getIn(['config', 'options']), }), { fetchConfig, editConfig, saveConfig } )(withPageTitle('Notifications - OpenReplay Preferences')(Notifications));