website
website copied to clipboard
(Chore): Refactor Volumebars to Stateless Functional Component
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.