diff --git a/app/components/DraftSidebar.tsx b/app/components/DraftSidebar.tsx index 278bf4b..ead39bd 100644 --- a/app/components/DraftSidebar.tsx +++ b/app/components/DraftSidebar.tsx @@ -13,7 +13,7 @@ interface DraftSidebarProps { collapsed: boolean; onCollapsedChange: (collapsed: boolean) => void; queueSection: ReactNode; - participantsSection: ReactNode; + recentPicksSection: ReactNode; className?: string; } @@ -21,27 +21,31 @@ export function DraftSidebar({ collapsed, onCollapsedChange, queueSection, - participantsSection, + recentPicksSection, className, }: DraftSidebarProps) { if (collapsed) { return (
Click participants to add to your queue
) : ( -{availableParticipants.find( @@ -139,11 +79,13 @@ export function QueueSection({
+ No picks yet... +
+ ) : ( +{pick.participant.name}
++ {pick.sport.name} +
+{pick.team.name}
++ R{pick.round} +
+| + | Sport | - {draftSlots.map((slot) => { + {draftSlots.map((slot, index) => { const flexUsed = flexPicksByTeam.get(slot.team.id) || 0; + const isLast = index === draftSlots.length - 1; return (
@@ -150,28 +150,31 @@ export function TeamsDraftedGrid({
})}
|
|---|---|---|
| - {sport.name} - | - {draftSlots.map((slot) => { - const teamSportPicks = - picksByTeamAndSport - .get(slot.team.id) - ?.get(sport.id) || []; - const hasMultiplePicks = teamSportPicks.length > 1; +||
| + {sport.name} + | + {draftSlots.map((slot, slotIndex) => { + const teamSportPicks = + picksByTeamAndSport + .get(slot.team.id) + ?.get(sport.id) || []; + const hasMultiplePicks = teamSportPicks.length > 1; + const isLastCol = slotIndex === draftSlots.length - 1; - return ( -+ return ( + |
{teamSportPicks.length > 0 ? (
{teamSportPicks.map((pick) => (
@@ -195,11 +198,11 @@ export function TeamsDraftedGrid({
|
);
})}
-