i think working bracket runner

This commit is contained in:
yohlo
2025-09-11 15:59:27 -05:00
parent 8dfff139e1
commit 3ffa6b03c7
10 changed files with 424 additions and 139 deletions

View File

@@ -8,6 +8,7 @@ interface MatchSlotProps {
from_loser?: boolean;
team?: TeamInfo;
seed?: number;
cups?: number;
}
export const MatchSlot: React.FC<MatchSlotProps> = ({
@@ -15,10 +16,11 @@ export const MatchSlot: React.FC<MatchSlotProps> = ({
from_loser,
team,
seed,
cups
}) => (
<Flex align="stretch">
{(seed && seed > 0) ? <SeedBadge seed={seed} /> : undefined}
<Flex p="4px 8px">
<Flex p="4px 8px" w='100%'>
{team ? (
<Text size="xs">{team.name}</Text>
) : from ? (
@@ -30,6 +32,11 @@ export const MatchSlot: React.FC<MatchSlotProps> = ({
TBD
</Text>
)}
{
cups !== undefined ? (
<Text ta='center' w={15} fw="800" ml='auto' size="xs">{cups}</Text>
) : undefined
}
</Flex>
</Flex>
);