Skip to content

Commit

Permalink
update BaseDeck to edge and add check for wasteChuteStagingAreas
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl11 committed Nov 16, 2023
1 parent fce1fb2 commit d4cb82a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions components/src/hardware-sim/BaseDeck/BaseDeck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,14 @@ export function BaseDeck(props: BaseDeckProps): JSX.Element {
) : (
<>
{showSlotLabels ? (
<SlotLabels robotType={robotType} color={darkFill} />
<SlotLabels
robotType={robotType}
color={darkFill}
show4thColumn={
stagingAreaFixtures.length > 0 ||
wasteChuteStagingAreaFixtures.length > 0
}
/>
) : null}
{singleSlotFixtures.map(fixture => (
<SingleSlotFixture
Expand Down Expand Up @@ -260,13 +267,6 @@ export function BaseDeck(props: BaseDeckProps): JSX.Element {
) : null
}
)}
{showSlotLabels ? (
<SlotLabels
robotType={robotType}
color={darkFill}
show4thColumn={stagingAreaFixtures.length > 0}
/>
) : null}
</>
{children}
</RobotCoordinateSpace>
Expand Down

0 comments on commit d4cb82a

Please sign in to comment.