i think working bracket runner
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user