Skip to content

Conversation

@kravets-levko
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • Refactor
  • Other

Description

Move repeatable code to wrappers.

@kravets-levko kravets-levko requested a review from arikfr January 23, 2020 09:38
@kravets-levko
Copy link
Collaborator Author

@arikfr (cc @gabrieldutra) I updated implementation based on our discussion - is it something you had in mind?

Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

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

This looks better! What is the currentPage prop about?

@kravets-levko
Copy link
Collaborator Author

currentPage is needed for some pages to show some state in UI (for example, highlight menu item on query/dashboard lists, etc.). Previously ItemsList was getting that value from route.resolve, but using component's prop looks more clear.

@kravets-levko
Copy link
Collaborator Author

@arikfr @gabrieldutra do you have more question or it's good to go?

@arikfr
Copy link
Member

arikfr commented Jan 26, 2020

Only comment I might have is that we should consider dropping currentPage prop in favor of parsing the URL, but it's not important enough. Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants