mirror of
https://github.com/hsokolowski/iTree.git
synced 2026-06-12 06:44:20 -04:00
Modal small change
This commit is contained in:
@@ -17,12 +17,12 @@ function Joint({ children, attr2, predicateName, pivot, match, notMatch, onChang
|
||||
const { isOpen, onOpen, onClose } = useDisclosure();
|
||||
const [size, setSize] = useState('lg');
|
||||
|
||||
const handleSizeClick = () => {
|
||||
const handleOpenModalClick = () => {
|
||||
onOpen();
|
||||
};
|
||||
return (
|
||||
<Box onClick={handleSizeClick}>
|
||||
<Badge borderRadius="full" px="2" py="1" colorScheme="teal">
|
||||
<Box>
|
||||
<Badge borderRadius="full" px="2" py="1" colorScheme="teal" onClick={handleOpenModalClick}>
|
||||
{attr2} <b>{predicateName}</b> {pivot}
|
||||
</Badge>
|
||||
<Modal onClose={onClose} size={size} isOpen={isOpen}>
|
||||
|
||||
Reference in New Issue
Block a user