website icon indicating copy to clipboard operation
website copied to clipboard

(Chore): Refactor Volumebars to Stateless Functional Component

Open simeydk opened this issue 5 years ago • 0 comments

The Volumebars component is currently overly complex. It has internal state and uses localstorage and communicates with the parent component (player) in a very roundabout way.

This refactor removes the need for localStorage, removes the unnecessary internal state, and cleans up the interface between the Volumebars component and the player component. It reduces the lines of code in the Volumebars component from 86 to 36.

simeydk avatar Oct 12 '19 16:10 simeydk