From 1825c0e2710c0d830c82959dcc40acc11775974a Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Sat, 25 Oct 2025 21:35:44 -0700 Subject: [PATCH] feat: Enhance AvailableParticipantsSection with icon buttons for queue actions and simplify draft button visibility logic --- .../draft/AvailableParticipantsSection.tsx | 67 ++++++------------- 1 file changed, 21 insertions(+), 46 deletions(-) diff --git a/app/components/draft/AvailableParticipantsSection.tsx b/app/components/draft/AvailableParticipantsSection.tsx index 064f607..c601882 100644 --- a/app/components/draft/AvailableParticipantsSection.tsx +++ b/app/components/draft/AvailableParticipantsSection.tsx @@ -1,5 +1,6 @@ import { Button } from "~/components/ui/button"; import { Badge } from "~/components/ui/badge"; +import { ListPlus, ListX } from "lucide-react"; interface AvailableParticipantsSectionProps { participants: Array<{ @@ -180,21 +181,9 @@ export function AvailableParticipantsSection({ {hasTeam && (
- {/* Pick button - only show if it's your turn and participant not drafted */} - {canPick && !isDrafted && ( + {!isDrafted && ( <> - - {/* Queue icon button next to Pick */} + {/* Queue icon button */} {!isInQueue ? ( ) : ( )} - - )} - - {/* Queue buttons - only show if not your turn */} - {!canPick && !isDrafted && !isInQueue && ( - - )} - {!canPick && !isDrafted && isInQueue && ( - + > + Draft + + )}