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

A way provide user to hide color history #39

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

piglier
Copy link

@piglier piglier commented Oct 16, 2020

No description provided.

@@ -179,7 +179,7 @@ export class HoloColorPicker extends React.PureComponent {
activeOpacity={0.7}
/>
}
{!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)

@@ -264,7 +264,8 @@ export class TriangleColorPicker extends React.PureComponent {
</View>
}
</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