From e6cfc4dc0929289e5c5e3020a0ae5079c919fc9e Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Sun, 9 Jan 2022 11:30:40 +0200 Subject: [PATCH] Pill team roster checkboxes --- .../tournament/DuringMatchActionsRosters.tsx | 3 + .../tournament/TeamRosterCheckboxes.tsx | 9 ++- app/styles/global.css | 8 +++ app/styles/tournament-bracket.css | 59 ++++++++++++++++++- 4 files changed, 75 insertions(+), 4 deletions(-) diff --git a/app/components/tournament/DuringMatchActionsRosters.tsx b/app/components/tournament/DuringMatchActionsRosters.tsx index 2e36e6561..d4b21c311 100644 --- a/app/components/tournament/DuringMatchActionsRosters.tsx +++ b/app/components/tournament/DuringMatchActionsRosters.tsx @@ -46,6 +46,9 @@ export function DuringMatchActionsRosters({ setCheckedPlayers((players) => { const newPlayers = clone(players); diff --git a/app/components/tournament/TeamRosterCheckboxes.tsx b/app/components/tournament/TeamRosterCheckboxes.tsx index 7ff982b2d..6ffcb93e0 100644 --- a/app/components/tournament/TeamRosterCheckboxes.tsx +++ b/app/components/tournament/TeamRosterCheckboxes.tsx @@ -1,3 +1,4 @@ +import clsx from "clsx"; import { TOURNAMENT_TEAM_ROSTER_MIN_SIZE } from "~/constants"; import type { FindTournamentByNameForUrlI } from "~/services/tournament"; import { Unpacked } from "~/utils"; @@ -7,19 +8,25 @@ export function TeamRosterCheckboxes({ team, checkedPlayers, handlePlayerClick, + disabled, }: { team: Unpacked; checkedPlayers: string[]; handlePlayerClick: (playerId: string) => void; + disabled: boolean; }) { return (
{team.members.map(({ member }) => (