Skip to content

NavigationDrawer - slight refactor to use props consts, and two functions#151

Open
ahi-el wants to merge 2 commits intoodota:masterfrom
ahi-el:refactor-navigation-drawer
Open

NavigationDrawer - slight refactor to use props consts, and two functions#151
ahi-el wants to merge 2 commits intoodota:masterfrom
ahi-el:refactor-navigation-drawer

Conversation

@ahi-el
Copy link

@ahi-el ahi-el commented Oct 13, 2019

File now uses 'const {...} = this.props' for several functions

Extracted code for two '' components into functions

also, refactored reused code from 'render' into method

Suggestion for next PR (very small) - create a 'consts' file which will have 'Favourites' and all the other hard coded values into consts

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.

1 participant