From 10e179345cfc7cf12e0904cb4525285e3952ce3f Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 18 Aug 2025 21:42:33 +0100 Subject: [PATCH] Fix dashboard for logged in users --- src/components/Dashboard/DashboardPage.tsx | 2 -- .../Dashboard/PersonalDashboard.tsx | 32 ++----------------- 2 files changed, 3 insertions(+), 31 deletions(-) diff --git a/src/components/Dashboard/DashboardPage.tsx b/src/components/Dashboard/DashboardPage.tsx index 054b5c98a..4bc6b42fe 100644 --- a/src/components/Dashboard/DashboardPage.tsx +++ b/src/components/Dashboard/DashboardPage.tsx @@ -30,7 +30,6 @@ export function DashboardPage(props: DashboardPageProps) { builtInBestPractices, builtInSkillRoadmaps, isTeamPage = false, - questionGroups, guides, videos, } = props; @@ -132,7 +131,6 @@ export function DashboardPage(props: DashboardPageProps) { builtInRoleRoadmaps={builtInRoleRoadmaps} builtInSkillRoadmaps={builtInSkillRoadmaps} builtInBestPractices={builtInBestPractices} - questionGroups={questionGroups} guides={guides} videos={videos} /> diff --git a/src/components/Dashboard/PersonalDashboard.tsx b/src/components/Dashboard/PersonalDashboard.tsx index bf7d20817..4d45573a1 100644 --- a/src/components/Dashboard/PersonalDashboard.tsx +++ b/src/components/Dashboard/PersonalDashboard.tsx @@ -193,7 +193,6 @@ export function PersonalDashboard(props: PersonalDashboardProps) { builtInRoleRoadmaps = [], builtInBestPractices = [], builtInSkillRoadmaps = [], - questionGroups = [], guides = [], videos = [], } = props; @@ -466,39 +465,14 @@ export function PersonalDashboard(props: PersonalDashboardProps) { - -
-
-

- Questions -

- -
- {questionGroups.map((questionGroup) => { - return ( - - ); - })} -
-
-
questionGroup.frontmatter.authorId) + guides={guides.slice(0, 7)} + questions={guides + .filter((guide) => guide.roadmapId === 'questions') .slice(0, 7)} />