From fcf403cf6fbbb57737d7d30eeb1fc066c68906b4 Mon Sep 17 00:00:00 2001 From: Krish Bhollar Tyagi Date: Fri, 6 Jun 2025 23:01:25 +0530 Subject: [PATCH 1/2] updated Sidebar.tsx --- src/components/Sidebar.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index eb6bd9824..d38a5acb4 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -42,6 +42,7 @@ export function Sidebar({ courseId: string; }) { const pathName = usePathname(); + const isVideoPlayerPage = pathName.startsWith('/video/'); const [sidebarOpen, setSidebarOpen] = useRecoilState(sidebarOpenAtom); const [currentActiveContentIds, setCurrentActiveContentIds] = useState< number[] @@ -257,10 +258,13 @@ export function Sidebar({

Course Content

- + {!isVideoPlayerPage && ( + + )} +