Skip to content

Commit

Permalink
Update PopOver.jsx
Browse files Browse the repository at this point in the history
uncommented popover
  • Loading branch information
sd012gfhkhhvh authored Apr 22, 2024
1 parent 9d097f0 commit 3a2423b
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions src/components/PopOver.jsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
// import { Modal, ModalCloseButton, ModalContent, ModalOverlay } from "@chakra-ui/react";
import { Modal, ModalCloseButton, ModalContent, ModalOverlay } from "@chakra-ui/react";

// function PopOver({ children, isOpen, triggerClose, showCloseBtn }) {
// return (
// <Modal isCentered isOpen={isOpen} onClose={triggerClose}>
// <ModalOverlay bg="rgba(0,0,0,0.7)" backdropFilter="blur(2px)" />
// <ModalContent
// color="white"
// width="95%"
// overflow="hidden"
// maxW="100%"
// maxH="90%"
// shadow="none"
// p={1}
// // borderRadius={20}
// backgroundColor="transparent"
// className="flex justify-center"
// >
// {showCloseBtn && (
// <ModalCloseButton
// backgroundColor="white"
// position="absolute"
// top="15px"
// right="15px"
// zIndex={100}
// rounded="full"
// />
// )}
// {children}
// </ModalContent>
// </Modal>
// );
// }
function PopOver({ children, isOpen, triggerClose, showCloseBtn }) {
return (
<Modal isCentered isOpen={isOpen} onClose={triggerClose}>
<ModalOverlay bg="rgba(0,0,0,0.7)" backdropFilter="blur(2px)" />
<ModalContent
color="white"
width="95%"
overflow="hidden"
maxW="100%"
maxH="90%"
shadow="none"
p={1}
// borderRadius={20}
backgroundColor="transparent"
className="flex justify-center"
>
{showCloseBtn && (
<ModalCloseButton
backgroundColor="white"
position="absolute"
top="15px"
right="15px"
zIndex={100}
rounded="full"
/>
)}
{children}
</ModalContent>
</Modal>
);
}

// export default PopOver;
export default PopOver;

0 comments on commit 3a2423b

Please sign in to comment.