-
Notifications
You must be signed in to change notification settings - Fork 41
components: extend Aggregation and EmptyResults interface #128
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,7 @@ class EmptyResults extends Component { | |
| totalResults, | ||
| error, | ||
| queryString, | ||
| extraContent, | ||
| overridableId, | ||
| } = this.props; | ||
| return ( | ||
|
|
@@ -35,6 +36,7 @@ class EmptyResults extends Component { | |
| <Element | ||
| queryString={queryString} | ||
| resetQuery={this.resetQuery} | ||
| extraContent={extraContent} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where is this used? It's a property specific to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But is not used in the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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! |
||
| overridableId={overridableId} | ||
| /> | ||
| </ShouldRender> | ||
|
|
||
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.
minor: It is definitely not to be addressed now...but why don't we just name the prop
label? Thevalueprefix is unnecessary as the property refers to the label of theValueElementcomponent. I might miss something though :P But, again, not to be addressed now just curiosity :)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 didn't want to confuse it with the whole aggregation label (the one you see on top of the filter)