// Edit account parameters. import React from 'react'; import { FormattedMessage } from 'react-intl'; import CheckBox from '../widgets/checkbox.jsx'; export default class AccNotificationsView extends React.PureComponent { constructor(props) { super(props); this.handleCheckboxClick = this.handleCheckboxClick.bind(this); } handleCheckboxClick(what, checked) { if (what == 'sound') { this.props.onToggleMessageSounds(checked); } else if (what == 'alert') { this.props.onTogglePushNotifications(checked); } else if (what == 'incognito') { this.props.onToggleIncognitoMode(checked); } } render() { return (
); } };