From eded34cd2beef2a40cb7ec83459a016d350bdb43 Mon Sep 17 00:00:00 2001 From: Pratham271 Date: Wed, 3 Apr 2024 06:53:28 +0530 Subject: [PATCH] changed the appbar --- src/components/Appbar.tsx | 120 +++++++++++++------------------------- 1 file changed, 42 insertions(+), 78 deletions(-) diff --git a/src/components/Appbar.tsx b/src/components/Appbar.tsx index 5261d2de3..723121f94 100644 --- a/src/components/Appbar.tsx +++ b/src/components/Appbar.tsx @@ -15,12 +15,10 @@ import { ThemeToggler } from './ThemeToggler'; import { NavigationMenu } from './landing/appbar/nav-menu'; import SearchBar from './search/SearchBar'; import MobileScreenSearch from './search/MobileScreenSearch'; -import { useState } from 'react'; export const Appbar = () => { const session = useSession(); const [sidebarOpen, setSidebarOpen] = useRecoilState(sidebarOpenAtom); - const [dropdownOpen, setDropdownOpen] = useState(false); const currentPath = usePathname(); const params = useParams(); let bookmarkPageUrl = null; @@ -47,89 +45,55 @@ export const Appbar = () => {
-
{/* Search Bar for smaller devices */} - {/* sm:flex md:w-auto md:block*/} -
-
-
- -
- {dropdownOpen && ( -
-
    -
  • - {currentPath.includes('courses') && - bookmarkPageUrl && ( - - )} -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
+ Bookmarks + )} + + + + + + + +
+