diff --git a/app/calendar/components/EventInfo.tsx b/app/calendar/components/EventInfo.tsx index b6d2e15e2..626b8820f 100644 --- a/app/calendar/components/EventInfo.tsx +++ b/app/calendar/components/EventInfo.tsx @@ -1,4 +1,16 @@ -import { Badge, Box, Button, Flex, Grid, Heading } from "@chakra-ui/react"; +import { + Badge, + Box, + Button, + Flex, + Grid, + Heading, + Popover, + PopoverArrow, + PopoverContent, + PopoverHeader, + PopoverTrigger, +} from "@chakra-ui/react"; import { Trans } from "@lingui/macro"; import Markdown from "components/common/Markdown"; import MyLink from "components/common/MyLink"; @@ -41,16 +53,33 @@ const TournamentInfo = ({ event }: EventInfoProps) => { {event.name} - - {event.tags.map((tag) => { - const tagInfo = TAGS.find((tagObj) => tagObj.code === tag)!; - return ( - - {tagInfo.name} - - ); - })} - + {event.tags.length > 0 && ( + + {event.tags.map((tag) => { + const tagInfo = TAGS.find((tagObj) => tagObj.code === tag)!; + return ( + + + + {tagInfo.name} + + + + + {tagInfo.description} + + + + + ); + })} + + )} { gridColumnGap="1rem" maxW={canEdit ? "32rem" : "24rem"} mx="auto" + mt={4} > - {/* TODO */} - + {event.discordInviteUrl ? ( + + + + ) : ( +
+ )}