From 18ce14854b82485c6a3ee43203e388f29379cf1e Mon Sep 17 00:00:00 2001 From: ItsFlash10 Date: Tue, 10 Sep 2024 12:29:20 +0530 Subject: [PATCH] feat/search: Added search bar and other minor ui fix --- src/app/courses/[courseId]/layout.tsx | 6 +++++- src/components/Sidebar.tsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/courses/[courseId]/layout.tsx b/src/app/courses/[courseId]/layout.tsx index f134db9b4..e6c279ddd 100644 --- a/src/app/courses/[courseId]/layout.tsx +++ b/src/app/courses/[courseId]/layout.tsx @@ -1,4 +1,5 @@ import { QueryParams } from '@/actions/types'; +import SearchBar from '@/components/search/SearchBar'; import { Sidebar } from '@/components/Sidebar'; import { getFullCourseContent } from '@/db/course'; import { authOptions } from '@/lib/auth'; @@ -49,7 +50,10 @@ const Layout = async ({ return (
- +
+ + +
{children}
); diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 1266360a4..347d09838 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -177,7 +177,7 @@ export function Sidebar({ variants={sidebarVariants} className="fixed right-0 top-0 z-[99999] flex h-screen w-full flex-col gap-4 overflow-y-auto rounded-r-lg border-l border-primary/10 bg-neutral-50 dark:bg-neutral-900 md:max-w-[30vw]" > -
+

Course Content