WYHNUS / ExchangeBuddy

Find your exchange buddies!
5 stars 0 forks source link

Refactor pageVisibility actions into props #125

Closed irvinlim closed 7 years ago

irvinlim commented 7 years ago

Too much clutter by requiring Redux just to hide or show a component. This results in every page requiring to import the actions, calling them in componentDidMount, and so on. Introducing Redux would require additional passing of unnecessary parameters.

For components which can hide or show, we either define the visibility in the page, or we generalize into a layout, and components will accept props like showButton (for example).