Skip to content

Commit a35f56b

Browse files
committed
make feeds visible in sidebar
1 parent eb10514 commit a35f56b

2 files changed

Lines changed: 3 additions & 12 deletions

File tree

‎apps/codebility/app/home/_components/LeftSidebar.tsx‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ const LeftSidebar = () => {
5454
links: section.links.filter((link: SidebarLink) => {
5555
// TODO: Remove these filters when features are implemented
5656

57-
// Filter out Feeds from MENU section
58-
if (link.label === "Feeds") {
59-
console.log("🚧 Feeds feature not yet implemented - hiding from navigation");
60-
return false;
61-
}
62-
6357
// Filter out Codev Overflow from CODEVS section
6458
if (link.label === "Codev Overflow") {
6559
console.log("🚧 Codev Overflow feature not yet implemented - hiding from navigation");
@@ -69,13 +63,13 @@ const LeftSidebar = () => {
6963
return true; // Keep all other links
7064
})
7165
}));
72-
66+
7367
setSidebarData(filteredData);
7468
}
7569
};
7670

7771
fetchSidebarData();
78-
}, [roleId, refreshKey]);
72+
}, []);
7973

8074
const sidebarVariants = {
8175
closed: {

‎apps/codebility/app/home/_components/LeftSidebarClient.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ const LeftSidebarClient = ({ initialSidebarData }: LeftSidebarClientProps) => {
4141
const filteredSidebarData = initialSidebarData.map((section) => ({
4242
...section,
4343
links: section.links.filter((link) => {
44-
// TODO: Remove these filters when features are implemented
45-
if (link.label === "Feeds" || link.label === "Codev Overflow") {
46-
return false;
47-
}
44+
4845
return true;
4946
})
5047
}));

0 commit comments

Comments
 (0)