import React, {PropTypes} from 'react'; import styles from './IgnoreUserWizard.css'; import {Button} from 'coral-ui'; // Guides the user through ignoring another user, including confirming their decision export class IgnoreUserWizard extends React.Component { static propTypes = { // comment on which this menu appears user: PropTypes.shape({ id: PropTypes.string.isRequired, name: PropTypes.string.isRequired }).isRequired, cancel: PropTypes.func.isRequired, // actually submit the ignore. Provide {id: user id to ignore} ignoreUser: PropTypes.func.isRequired, } constructor(props) { super(props); this.state = { // what step of the wizard is the user on step: 1 }; this.onClickCancel = this.onClickCancel.bind(this); } onClickCancel() { this.props.cancel(); } render() { const {user, ignoreUser} = this.props; const goToStep = (stepNum) => this.setState({step: stepNum}); const step1 = (
When you ignore a user, all comments they wrote on the site will be hidden from you. You can undo this later from the Profile tab.
Are you sure you want to ignore { user.name }?