Update Navigation.tsx

This commit is contained in:
Vedant Borkar
2023-10-16 19:52:16 +05:30
committed by GitHub
parent aea6a434f1
commit fa8177d0e5

View File

@@ -264,7 +264,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
src={UploadIcon}
onClick={() => setUploadModalState('ACTIVE')}
></img>
{isDocsListOpen && (
{!isDocsListOpen && (
<div className="absolute top-12 left-0 right-6 ml-2 mr-4 max-h-52 overflow-y-scroll bg-white shadow-lg">
{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"
>