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

Remove count from Cliqz Features, replace with ON/OFF indicator #393

Merged
merged 2 commits into from Jun 10, 2019
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Prev

Stop passing now unneeded data prop to CliqzFeature

  • Loading branch information
wlycdgr committed Jun 10, 2019
commit c7277843a9337a14da1719f8eeed31572c2b602d
@@ -80,7 +80,6 @@ class CliqzFeature extends React.Component {
const {
active,
cliqzInactive,
data,
isSmaller,
isCondensed,
isTooltipBody,
@@ -585,7 +585,6 @@ class Summary extends React.Component {

_renderCliqzAntiTracking() {
const {
antiTracking,
enable_anti_tracking,
is_expert,
} = this.props;
@@ -596,7 +595,6 @@ class Summary extends React.Component {
<CliqzFeature
clickButton={this.clickCliqzFeature}
type="anti_track"
data={antiTracking}
active={enable_anti_tracking}
cliqzInactive={this._isCliqzInactive()}
isSmaller={is_expert && !isCondensed}
@@ -611,7 +609,6 @@ class Summary extends React.Component {

_renderCliqzAdBlock() {
const {
adBlock,
enable_ad_block,
is_expert,
} = this.props;
@@ -622,7 +619,6 @@ class Summary extends React.Component {
<CliqzFeature
clickButton={this.clickCliqzFeature}
type="ad_block"
data={adBlock}
active={enable_ad_block}
cliqzInactive={this._isCliqzInactive()}
isSmaller={is_expert && !isCondensed}
@@ -639,7 +635,6 @@ class Summary extends React.Component {
const {
enable_smart_block,
is_expert,
smartBlock,
} = this.props;
const isCondensed = this._isCondensed();

@@ -648,7 +643,6 @@ class Summary extends React.Component {
<CliqzFeature
clickButton={this.clickCliqzFeature}
type="smart_block"
data={smartBlock}
active={enable_smart_block}
cliqzInactive={this._isCliqzInactive()}
isSmaller={is_expert && !isCondensed}
ProTip! Use n and p to navigate between commits in a pull request.