Why not creating an specific button for each style or type instead of having so many linea of code making difficult to read? I think, applying Single Responsibility principle here would make this component to be several of them and another as the manager. What do you think???
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Why not creating an specific button for each style or type instead of having so many linea of code making difficult to read? I think, applying Single Responsibility principle here would make this component to be several of them and another as the manager. What do you think???