upd: hapus variable global

NO Issues
This commit is contained in:
amel
2024-07-09 10:57:26 +08:00
parent 0c62724feb
commit de1debf3db
16 changed files with 24 additions and 54 deletions

View File

@@ -1,11 +1,8 @@
import { useHookstate } from '@hookstate/core';
import { Box, Button, Flex, Modal, Text } from '@mantine/core';
import React, { useState } from 'react';
import { BsQuestionCircleFill } from 'react-icons/bs';
import { isModal } from '../val/isModal';
export default function LayoutModal({ opened, onClose, description, onYes }: { opened: boolean, onClose: () => void, description: string, onYes: (val: boolean) => void }) {
const openModal = useHookstate(isModal)
const [isValModal, setValModal] = useState(opened)
return (
<Modal styles={{