-
Notifications
You must be signed in to change notification settings - Fork 66
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
base: master
Are you sure you want to change the base?
Conversation
@@ -179,7 +179,7 @@ export class HoloColorPicker extends React.PureComponent { | |||
activeOpacity={0.7} | |||
/> | |||
} | |||
{!oldColor && | |||
{!oldColor && this.props.hideOldColor === false && |
There was a problem hiding this comment.
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 && |
There was a problem hiding this comment.
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
?
No description provided.