From 55f341d57293ae5c9c375707935725691db907ed Mon Sep 17 00:00:00 2001 From: Vinit Date: Wed, 5 Feb 2025 00:00:25 +0530 Subject: [PATCH 1/3] Updated sidebar --- src/components/Sidebar.tsx | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 2ac87ec8e..eec9292eb 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -182,10 +182,11 @@ export function Sidebar({ : null } > - + {content.title} - + + {renderContent(content.children)} @@ -196,7 +197,7 @@ export function Sidebar({ ) @@ -204,22 +205,22 @@ export function Sidebar({ } >
-
-
+
{content.type === 'video' && } {content.type === 'video' && } {content.type === 'notion' && }
-
+
{content.title}
{content.type === 'video' && ( - +
+ +
)} -
); @@ -274,7 +275,7 @@ export function Sidebar({ `item-${num}`)} - className="w-full px-4 pb-40 capitalize" + className="w-full px-2 pb-40 capitalize" > {memoizedContent} From 6fe52c742693deadb0b469f599eaf6591fe0b84f Mon Sep 17 00:00:00 2001 From: Vinit Date: Wed, 5 Feb 2025 13:48:57 +0530 Subject: [PATCH 2/3] Modified sidebar --- src/components/Sidebar.tsx | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index eec9292eb..774df1d09 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -205,22 +205,22 @@ export function Sidebar({ } >
-
- {content.type === 'video' && } - {content.type === 'video' && } - {content.type === 'notion' && } -
-
- {content.title} +
+ {content.type === 'video' && } + {content.type === 'video' && } + {content.type === 'notion' && } +
+
+ {content.title} +
+ {content.type === 'video' && ( +
+
- {content.type === 'video' && ( -
- -
- )} + )}
); From b68861b39a46def18221dba27a3b5903f8702204 Mon Sep 17 00:00:00 2001 From: Vinit Date: Wed, 5 Feb 2025 23:33:57 +0530 Subject: [PATCH 3/3] Solving linting error --- src/components/Sidebar.tsx | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 774df1d09..033f73e98 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -205,22 +205,22 @@ export function Sidebar({ } >
-
- {content.type === 'video' && } - {content.type === 'video' && } - {content.type === 'notion' && } -
-
- {content.title} -
- {content.type === 'video' && ( -
- +
+ {content.type === 'video' && } + {content.type === 'video' && } + {content.type === 'notion' && } +
+
+ {content.title}
- )} + {content.type === 'video' && ( +
+ +
+ )}
); @@ -244,6 +244,7 @@ export function Sidebar({ {sidebarOpen ? : } {sidebarOpen ? 'Hide Contents' : 'Show Contents'} + {sidebarOpen && (