cheshire137 / overwatch-team-comps

Plan your Overwatch team composition per map. Share your team comp with others.
MIT License
12 stars 2 forks source link

Refactor HeroSelect, MapSelect to use a common SelectMenu component #141

Closed cheshire137 closed 7 years ago

cheshire137 commented 7 years ago

This doesn't change the functionality any, it's just some code clean-up so that HeroSelect and MapSelect are a bit simpler. Now they use a generic SelectMenu component. This should make it easier to make all such menus in the app more consistent in appearance and behavior, in a follow-up branch. Menus can make use of the new SelectMenu component instead of copy-pasting common functionality like onMenuItemClick, handleClickOutside, etc.

This also improves the appearance of text in the menu that is longer than the menu is wide: now menu items truncate with a ... instead of being cut off or having the ✅ covering part of the text:

team_composition_form_-_overwatch_team_comps