From b03bc13742e227f1d99fcbacf66d3899ec793e90 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 7 Mar 2024 02:47:47 +0530 Subject: [PATCH] feat: responsive topbar --- ui/src/components/Topbar/index.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 = () => { -