Skip to content

Conversation

@kpsherva
Copy link
Contributor

@kpsherva kpsherva commented Aug 3, 2020

No description provided.

isSelected={isSelected}
onFilterClicked={onFilterClicked}
getChildAggCmps={getChildAggCmps}
valueLabel={label}
Copy link
Member

Choose a reason for hiding this comment

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

minor: It is definitely not to be addressed now...but why don't we just name the prop label? The value prefix is unnecessary as the property refers to the label of the ValueElement component. I might miss something though :P But, again, not to be addressed now just curiosity :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't want to confuse it with the whole aggregation label (the one you see on top of the filter)

<Element
queryString={queryString}
resetQuery={this.resetQuery}
extraContent={extraContent}
Copy link
Member

Choose a reason for hiding this comment

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

Where is this used? It's a property specific to Overridable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, it is if you want to pass something additional to the EmptyResult, f.e. button to add a new instance or more information. It is more flexible this way than to override the whole component just for this.

Copy link
Member

Choose a reason for hiding this comment

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

But is not used in the Element, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no it's not used, but I think it should be passed as a prop

Copy link
Member

Choose a reason for hiding this comment

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

Ok I missed the fact that the Element is overridable :) Then, it looks good!

<Element
queryString={queryString}
resetQuery={this.resetQuery}
extraContent={extraContent}
Copy link
Member

Choose a reason for hiding this comment

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

Ok I missed the fact that the Element is overridable :) Then, it looks good!

@kpsherva kpsherva merged commit db3ae00 into inveniosoftware:master Aug 5, 2020
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.

3 participants