Skip to content

Commit

Permalink
Complete fixing issue (#2690)
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-wanja committed Sep 6, 2017
1 parent 983422d commit 563748e
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,24 @@ class GridItemControls extends Component {
}

renderVisibilityButton() {
if (this.props.hasChanges()) {
const checkVariantLabel = this.props.checkLabelValidation();
if (checkVariantLabel.length > 0) {
return (
<div>
<Components.IconButton
icon=""
onIcon=""
status="info"
status="danger"
/>
</div>
);
}
}

// renders red button when the product is missing the variant label
renderLabelButton() {
const checkVariantLabel = this.props.checkLabelValidation();
if (checkVariantLabel.length > 0) {
} else if (this.props.hasChanges()) {
return (
<div>
<Components.IconButton
icon=""
onIcon=""
status="danger"
status="info"
/>
</div>
);
Expand All @@ -68,7 +63,6 @@ class GridItemControls extends Component {

{this.renderArchived()}
{this.renderVisibilityButton()}
{this.renderLabelButton()}
</div>
);
}
Expand Down

0 comments on commit 563748e

Please sign in to comment.