diff --git a/client/src/App.jsx b/client/src/App.jsx index 4ba2739..28aa3a4 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -8,7 +8,7 @@ function App() { return ( diff --git a/client/src/components/sidebar.jsx b/client/src/components/sidebar.jsx index a4c3487..afd81fc 100644 --- a/client/src/components/sidebar.jsx +++ b/client/src/components/sidebar.jsx @@ -2,6 +2,8 @@ import { Box, Button } from "@chakra-ui/react"; import { FaVolcano } from "react-icons/fa6"; import { createIcon } from "@chakra-ui/react"; import { CloseButton } from "@chakra-ui/react"; +import { IconButton } from "@chakra-ui/react"; +import { RxHamburgerMenu } from "react-icons/rx"; import { useState } from "react" // ICONS @@ -58,23 +60,52 @@ export const Users = createIcon({ }); export default function Sidebar () { + const [isOpen, setIsOpen] = useState(true); + return ( - - - - - - - - + <> + {isOpen && ( + + setIsOpen(!isOpen)}> + + + + + + + )} + + {!isOpen && ( + + setIsOpen(!isOpen)}> + + + + + + + + + )} + ); }