Skip to content

Conversation

@piglier
Copy link

@piglier piglier commented Oct 16, 2020

No description provided.

/>
}
{!oldColor &&
{!oldColor && this.props.hideOldColor === false &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe here the prop does not make sense, since it has the setting hideOldColor to true has the same effect as not setting oldColor.

And missing default prop with === would change the default behaviour, however I believe it shouldn't be here at all (if I am not mistaken)

}
</View>
<View style={[styles.colorPreviews, computed.colorPreviews]}>
{ this.props.hideOldColor === false &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here... I believe the property won't hide old color but "both" colors - maybe wrong name? hideColorPreview?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants