diff --git a/ui/src/components/Topbar/index.tsx b/ui/src/components/Topbar/index.tsx index d534fdab..44a4c5c4 100644 --- a/ui/src/components/Topbar/index.tsx +++ b/ui/src/components/Topbar/index.tsx @@ -1,10 +1,17 @@ -import { Layout, Menu, Col } from "antd"; +import { useState } from "react"; +import { Layout, Menu, Col, Drawer } from "antd"; import { Link } from "react-router-dom"; import { FaBars } from "react-icons/fa"; const { Header } = Layout; const Topbar = () => { + const [visible, setVisible] = useState(false); + + const showDrawer = () => setVisible(true); + + const hideDrawer = () => setVisible(false); + return (
@@ -27,7 +34,7 @@ const Topbar = () => { -