From fa8177d0e57c55b6e5fa8f47f1daf7707ace79e5 Mon Sep 17 00:00:00 2001 From: Vedant Borkar Date: Mon, 16 Oct 2023 19:52:16 +0530 Subject: [PATCH 1/2] Update Navigation.tsx --- frontend/src/Navigation.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index be308eab..361ee652 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -264,7 +264,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { src={UploadIcon} onClick={() => setUploadModalState('ACTIVE')} > - {isDocsListOpen && ( + {!isDocsListOpen && (
{docs ? ( docs.map((doc, index) => { @@ -274,7 +274,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { key={index} onClick={() => { dispatch(setSelectedDocs(doc)); - setIsDocsListOpen(false); + setIsDocsListOpen(true); }} className="flex h-10 w-full cursor-pointer items-center justify-between border-x-2 border-b-2 hover:bg-gray-100" > From 5c2b4398d9194268b6d21c6ec1a7651a9ec1720b Mon Sep 17 00:00:00 2001 From: Vedant Borkar Date: Tue, 17 Oct 2023 11:53:57 +0530 Subject: [PATCH 2/2] Update Navigation.tsx --- frontend/src/Navigation.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index 361ee652..ede4ced4 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -255,7 +255,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { src={Arrow2} alt="arrow" className={`${ - isDocsListOpen ? 'rotate-0' : 'rotate-180' + !isDocsListOpen ? 'rotate-0' : 'rotate-180' } ml-auto mr-3 w-3 transition-all`} />
@@ -264,7 +264,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { src={UploadIcon} onClick={() => setUploadModalState('ACTIVE')} > - {!isDocsListOpen && ( + {isDocsListOpen && (
{docs ? ( docs.map((doc, index) => { @@ -274,7 +274,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { key={index} onClick={() => { dispatch(setSelectedDocs(doc)); - setIsDocsListOpen(true); + setIsDocsListOpen(false); }} className="flex h-10 w-full cursor-pointer items-center justify-between border-x-2 border-b-2 hover:bg-gray-100" >