Skip to content

Commit

Permalink
added some comments on refactored components
Browse files Browse the repository at this point in the history
  • Loading branch information
arquelion committed Oct 8, 2024
1 parent 822e55e commit 6c99419
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,10 @@ const CustomTooltip = styled(({ className, ...props }: TooltipProps) => (
},
})

// used for wrapping SelectionCards for the single selection variant - passing
// in the appropriate selectedIndex and teamSlotIndex controls whether outlining
// and flashing the selected outline is enabled, favorite icon and the character
// tooltip are always present
function SingleSelectCardWrapper({
characterKey,
children,
Expand Down Expand Up @@ -602,6 +606,9 @@ function SingleSelectCardWrapper({
)
}

// used for wrapping SelectionCards for the multi select variant - components
// using this must provide the teamSlotIndex of the character this card is for
// (0-3 if the character is in the team being selected for, -1 otherwise)
function MultiSelectCardWrapper({
characterKey,
teamSlotIndex,
Expand Down

0 comments on commit 6c99419

Please sign in to comment.