From 462011688f69aaf1f0fb0354661792c7415bbd8d Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Sat, 7 Sep 2024 18:59:30 -0500 Subject: [PATCH] Better close button on sidebar --- src/components/sidebar/Sidebar.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/components/sidebar/Sidebar.js b/src/components/sidebar/Sidebar.js index 221c4ca..0efa353 100644 --- a/src/components/sidebar/Sidebar.js +++ b/src/components/sidebar/Sidebar.js @@ -30,14 +30,6 @@ const Sidebar = () => { return (
-
{isExpanded ? (
@@ -119,6 +111,9 @@ const Sidebar = () => {
session ? signOut() : router.push('/auth/signin')} className={`w-full flex flex-row items-center cursor-pointer py-2 my-2 hover:bg-gray-700 rounded-lg ${isActive('/auth/signin') ? 'bg-gray-700' : ''}`}>

{session ? 'Logout' : 'Login'}

+
+

{isExpanded ? 'close' : 'open'}

+
{/* todo: have to add this extra button to push the sidebar to the right space but it doesnt seem to cause any negative side effects? */}

Logout

@@ -128,6 +123,8 @@ const Sidebar = () => {
router.push('/profile?tab=settings')} /> session ? signOut() : router.push('/auth/signin')} /> + + session ? signOut() : router.push('/auth/signin')} />
)}