-
-
-
- {contentType === 'notion' ? (
-
- ) : null}
- {contentType === 'video' ? (
-
- ) : null}
- {(contentType === 'video' || contentType === 'notion') && (
-
- )}
- {contentType === 'folder' ? (
- ({
- title: x?.title || '',
- image: x?.thumbnail || '',
- type: x?.type || 'folder',
- id: x?.id || 0,
- markAsCompleted: x?.videoProgress?.markAsCompleted || false,
- percentComplete: getFolderPercentCompleted(x?.children),
- }))}
- courseId={parseInt(course.id, 10)}
- />
- ) : null}
-
-
+
+
+
+ {contentType === 'notion' ? (
+
+ ) : null}
+ {contentType === 'video' ? (
+
+ ) : null}
+ {(contentType === 'video' || contentType === 'notion') && (
+
+ )}
+ {contentType === 'folder' ? (
+ ({
+ title: x?.title || '',
+ image: x?.thumbnail || '',
+ type: x?.type || 'folder',
+ id: x?.id || 0,
+ markAsCompleted: x?.videoProgress?.markAsCompleted || false,
+ percentComplete: getFolderPercentCompleted(x?.children),
+ }))}
+ courseId={parseInt(course.id, 10)}
+ />
+ ) : null}
);
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx
index c8392f10b..d5981dbd5 100644
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@ -115,24 +115,19 @@ export function Sidebar({
}
return (
-
-
-
- {/*
+
+ {/* {
setSidebarOpen((s) => !s);
}}
/> */}
-
-
-
- {/* Render course content */}
- {renderContent(fullCourseContent)}
-
+
+
+ {/* Render course content */}
+ {renderContent(fullCourseContent)}
+
);
}