Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Adding sort prop to ModalContribute, TableContribute #147

Merged
merged 1 commit into from
Sep 12, 2018

Conversation

ryanml
Copy link
Contributor

@ryanml ryanml commented Sep 12, 2018

Fixes: #146

Copy link
Member

@petemill petemill left a comment

Choose a reason for hiding this comment

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

Looks good. Just a couple nits:

  • Is the attention for sort to take any other option, such as different columns? If not, the current implementation is pretty binary, so perhaps a simplification would be better and not have to pass through Sort type or do string comparison for the prop - e.g. sortByAttentionDescending: bool = true

@ryanml
Copy link
Contributor Author

ryanml commented Sep 12, 2018

@petemill my thought was that eventually we may want to have other columns as the pivot for sort (like name, verified, etc) so I left the type as a string. You are right that at this time it's pretty binary, I can update it to a bool flag. Thanks!

@ryanml
Copy link
Contributor Author

ryanml commented Sep 12, 2018

@petemill changes made

@cezaraugusto cezaraugusto merged commit 088aefd into brave:master Sep 12, 2018
@cezaraugusto cezaraugusto added this to the 0.24.0 milestone Sep 12, 2018
@NejcZdovc
Copy link
Contributor

@ryanml can we revert this one as we don't want to do sorting for auto contribute on JS level but on DB level. More info here brave/brave-browser#988 (comment)

ryanml added a commit to ryanml/brave-ui that referenced this pull request Sep 17, 2018
@ryanml ryanml mentioned this pull request Sep 17, 2018
ryanml added a commit that referenced this pull request Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants