From 02272ab0ca7f4ece5206e4d0164599aa4236d804 Mon Sep 17 00:00:00 2001 From: Aditya Nandan <61308761+iMADi-ARCH@users.noreply.github.com> Date: Wed, 5 Jul 2023 12:54:42 +0530 Subject: [PATCH] Search for brains through the dropdown (#507) --- .../NavBar/components/Header/index.tsx | 2 +- .../NavItems/components/BrainsDropDown.tsx | 146 ------------------ .../BrainsDropDown/AddBrainModal.tsx | 60 +++++++ .../BrainsDropDown/BrainsDropDown.tsx | 88 +++++++++++ .../components/BrainsDropDown/index.ts | 4 + frontend/lib/components/ui/Popover.tsx | 71 +++++++++ .../BrainProvider/hooks/useBrainState.ts | 6 + frontend/package.json | 1 + frontend/yarn.lock | 22 +++ 9 files changed, 253 insertions(+), 147 deletions(-) delete mode 100644 frontend/lib/components/NavBar/components/NavItems/components/BrainsDropDown.tsx create mode 100644 frontend/lib/components/NavBar/components/NavItems/components/BrainsDropDown/AddBrainModal.tsx create mode 100644 frontend/lib/components/NavBar/components/NavItems/components/BrainsDropDown/BrainsDropDown.tsx create mode 100644 frontend/lib/components/NavBar/components/NavItems/components/BrainsDropDown/index.ts create mode 100644 frontend/lib/components/ui/Popover.tsx diff --git a/frontend/lib/components/NavBar/components/Header/index.tsx b/frontend/lib/components/NavBar/components/Header/index.tsx index 22674a302..d49384bb9 100644 --- a/frontend/lib/components/NavBar/components/Header/index.tsx +++ b/frontend/lib/components/NavBar/components/Header/index.tsx @@ -15,7 +15,7 @@ export const Header = ({ y: hidden ? "-100%" : "0%", transition: { ease: "circOut" }, }} - className="sticky top-0 w-full border-b border-b-black/10 dark:border-b-white/25 bg-white dark:bg-black z-[1200]" + className="sticky top-0 w-full border-b border-b-black/10 dark:border-b-white/25 bg-white dark:bg-black z-20" >