diff --git a/src/components/ui/HexagonItem/HexagonItem.tsx b/src/components/ui/HexagonItem/HexagonItem.tsx index 968a5a6e..7bf93a56 100644 --- a/src/components/ui/HexagonItem/HexagonItem.tsx +++ b/src/components/ui/HexagonItem/HexagonItem.tsx @@ -1,21 +1,21 @@ import { Box, Button, - Heading, + Modal, + ModalOverlay, + ModalContent, + ModalBody, + ModalHeader, + ModalCloseButton, + ModalFooter, Image, Link, - Popover, - PopoverArrow, - PopoverBody, - PopoverCloseButton, - PopoverContent, - PopoverTrigger, + useDisclosure, Show, - Text, } from '@chakra-ui/react'; import { Products } from 'models/Config'; import { TargetProduct } from 'models/OutcomeConditions'; -import { FC, useState } from 'react'; +import { FC } from 'react'; interface HexagonItemProps { product: TargetProduct; @@ -23,7 +23,7 @@ interface HexagonItemProps { } export const HexagonItem: FC = ({ product, active = false }) => { - const [isOpen, setIsOpen] = useState(false); + const { isOpen, onOpen, onClose } = useDisclosure() const productDetail = Products.find((p) => p.product === product); @@ -32,106 +32,108 @@ export const HexagonItem: FC = ({ product, active = false }) = } return ( - setIsOpen(false)}> - - - - - - - - - {productDetail.name} - - + + {productDetail.name} + + + {productDetail.name} + + + + + + + {productDetail.name} + + {productDetail.description} - - - + + - - - - + + + + ); };