From 291e2d985258db89b2084ebc5ec58268d0bfa435 Mon Sep 17 00:00:00 2001 From: Awesh Choudhary <66569398+aweshchoudhary@users.noreply.github.com> Date: Sat, 25 Mar 2023 17:42:06 +0530 Subject: [PATCH] Added Better Closing Sidebar Logic (Close on Background Click) (#122) --- components/Sidebar/Sidebar.tsx | 2 +- pages/index.tsx | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/Sidebar/Sidebar.tsx b/components/Sidebar/Sidebar.tsx index cbeffae..184ea9a 100644 --- a/components/Sidebar/Sidebar.tsx +++ b/components/Sidebar/Sidebar.tsx @@ -77,7 +77,7 @@ export const Sidebar: FC = ({ loading, conversations, lightMode, selected }, [searchTerm, conversations]); return ( -