Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M20-51: New Opt-in for Ghostery #444

Merged

M20-51: just for eslint phase 2

  • Loading branch information
Aleksandr Panin
Aleksandr Panin committed Aug 30, 2019
commit 5638487636ca2607e7e52cc0f60bb6a0667e920d
@@ -77,6 +77,16 @@ class Notification extends Component {
);
}

renderClose() {
return (
<div
className="close"
onClick={() => { this.closeNotification(); }}
style={{ backgroundImage: this.closeIcon }}
/>
);
}

render() {
return (
<div>
@@ -86,15 +96,7 @@ class Notification extends Component {
<div className="rewards-popup-container">
<div className={`rewards-notification ${this.props.data.type}`}>
{this.props.data.type === 'first-prompt' && this.renderOptoutImage()}
{this.props.data.type !== 'first-prompt'
&& (
<div
className="close"
onClick={() => { this.closeNotification(); }}
style={{ backgroundImage: this.closeIcon }}
/>
)
}
{this.props.data.type !== 'first-prompt' && this.renderClose()}
<div className={`notification-text ${this.props.data.type}`}>
{this.props.data.type === 'first-prompt' && this.renderLabels()}
{this.props.data.type === 'first-prompt' && this.renderHeadline()}
ProTip! Use n and p to navigate between commits in a pull request.