A player is shown as a v-list-item with an avatar icon and sometimes a button in CreateGame, Game, SelectMembers, and Waiting.
This creates a Player component and replaces duplicated code with the component.
The component is a v-list-item with an avatar icon that varies if a player is a guest or member, and a button slot that allows a button to be shown alongside the list item when applicable.
A player is shown as a
v-list-item
with an avatar icon and sometimes a button inCreateGame
,Game
,SelectMembers
, andWaiting
.This creates a
Player
component and replaces duplicated code with the component.The component is a
v-list-item
with an avatar icon that varies if a player is a guest or member, and abutton
slot that allows a button to be shown alongside the list item when applicable.