From d25ee1538a316e05f575962a954ee0bd162bd5e7 Mon Sep 17 00:00:00 2001 From: Vinit Neogi <20491952+vneogi199@users.noreply.github.com> Date: Sun, 21 Jan 2024 22:02:40 +0530 Subject: [PATCH 1/2] fix: hide Search bar for Add Ratings page --- src/app/rate/page.js | 2 +- src/components/SideNav.js | 56 +++++++++++++++++++++------------------ 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/src/app/rate/page.js b/src/app/rate/page.js index 9d2aafa..908bfac 100644 --- a/src/app/rate/page.js +++ b/src/app/rate/page.js @@ -28,7 +28,7 @@ export default function Rate() { }, []); return ( - + <>
diff --git a/src/components/SideNav.js b/src/components/SideNav.js index e052fb1..28c8323 100644 --- a/src/components/SideNav.js +++ b/src/components/SideNav.js @@ -20,7 +20,7 @@ import { account } from "@/config/appwrite-client"; import getUser from "@/utils/github/getUser"; import { usePathname } from "next/navigation"; -export default function SideNav({ setKeyword, children }) { +export default function SideNav({ setKeyword, showSearch = true, children }) { const [sidebarOpen, setSidebarOpen] = useState(false); const [user, setUser] = useState(null); const pathName = usePathname(); @@ -392,31 +392,35 @@ export default function SideNav({ setKeyword, children }) { Open sidebar
- +