diff --git a/web/src/features/dev/index.tsx b/web/src/features/dev/index.tsx index f75224e..08492d3 100644 --- a/web/src/features/dev/index.tsx +++ b/web/src/features/dev/index.tsx @@ -1,16 +1,4 @@ -import { - Button, - Drawer, - DrawerBody, - DrawerContent, - DrawerHeader, - DrawerOverlay, - IconButton, - Tooltip, - VStack, - Divider, - useDisclosure, -} from '@chakra-ui/react'; +import { ActionIcon, Tooltip, Drawer, Stack, Divider, Button } from '@mantine/core'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { debugAlert } from './debug/alert'; import { debugContext } from './debug/context'; @@ -20,72 +8,67 @@ import { debugCustomNotification, debugNotification } from './debug/notification import { debugCircleProgressbar, debugProgressbar } from './debug/progress'; import { debugTextUI } from './debug/textui'; import { debugSkillCheck } from './debug/skillcheck'; +import { useState } from 'react'; const Dev: React.FC = () => { - const { isOpen, onOpen, onClose } = useDisclosure(); + const [opened, setOpened] = useState(false); return ( <> - - } - colorScheme="orange" - size="lg" - aria-label="Dev tools" - onClick={() => onOpen()} - /> + + setOpened(true)} + radius="xl" + variant="filled" + color="orange" + sx={{ position: 'absolute', bottom: 0, right: 0, width: 50, height: 50 }} + size="xl" + mr={50} + mb={50} + > + + - - - - Developer drawer - - - - - - - - - - - - - - - - - - - - - + + setOpened(false)} opened={opened} title="Developer drawer" padding="xl"> + + + + + + + + + + + + + + + + + + );