mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-21 00:21:35 +02:00
Fix dashboard for logged in users
This commit is contained in:
@@ -30,7 +30,6 @@ export function DashboardPage(props: DashboardPageProps) {
|
|||||||
builtInBestPractices,
|
builtInBestPractices,
|
||||||
builtInSkillRoadmaps,
|
builtInSkillRoadmaps,
|
||||||
isTeamPage = false,
|
isTeamPage = false,
|
||||||
questionGroups,
|
|
||||||
guides,
|
guides,
|
||||||
videos,
|
videos,
|
||||||
} = props;
|
} = props;
|
||||||
@@ -132,7 +131,6 @@ export function DashboardPage(props: DashboardPageProps) {
|
|||||||
builtInRoleRoadmaps={builtInRoleRoadmaps}
|
builtInRoleRoadmaps={builtInRoleRoadmaps}
|
||||||
builtInSkillRoadmaps={builtInSkillRoadmaps}
|
builtInSkillRoadmaps={builtInSkillRoadmaps}
|
||||||
builtInBestPractices={builtInBestPractices}
|
builtInBestPractices={builtInBestPractices}
|
||||||
questionGroups={questionGroups}
|
|
||||||
guides={guides}
|
guides={guides}
|
||||||
videos={videos}
|
videos={videos}
|
||||||
/>
|
/>
|
||||||
|
@@ -193,7 +193,6 @@ export function PersonalDashboard(props: PersonalDashboardProps) {
|
|||||||
builtInRoleRoadmaps = [],
|
builtInRoleRoadmaps = [],
|
||||||
builtInBestPractices = [],
|
builtInBestPractices = [],
|
||||||
builtInSkillRoadmaps = [],
|
builtInSkillRoadmaps = [],
|
||||||
questionGroups = [],
|
|
||||||
guides = [],
|
guides = [],
|
||||||
videos = [],
|
videos = [],
|
||||||
} = props;
|
} = props;
|
||||||
@@ -466,39 +465,14 @@ export function PersonalDashboard(props: PersonalDashboardProps) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="relative mt-12 border-t border-t-[#1e293c] pt-12">
|
|
||||||
<div className="container">
|
|
||||||
<h2 className="text-md font-regular absolute -top-[17px] left-4 flex rounded-lg border border-[#1e293c] bg-slate-900 px-3 py-1 text-slate-400 sm:left-1/2 sm:-translate-x-1/2">
|
|
||||||
Questions
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<div className="grid grid-cols-1 gap-3 px-2 sm:grid-cols-2 sm:px-0 lg:grid-cols-3">
|
|
||||||
{questionGroups.map((questionGroup) => {
|
|
||||||
return (
|
|
||||||
<HeroRoadmap
|
|
||||||
percentageDone={0}
|
|
||||||
key={questionGroup.id}
|
|
||||||
resourceId={questionGroup.id}
|
|
||||||
resourceType="roadmap"
|
|
||||||
resourceTitle={questionGroup.frontmatter.briefTitle}
|
|
||||||
url={`/questions/${questionGroup.id}`}
|
|
||||||
allowFavorite={false}
|
|
||||||
isNew={questionGroup.frontmatter.isNew}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="grid grid-cols-1 gap-5 bg-gray-50 px-4 py-5 sm:gap-16 sm:px-0 sm:py-16">
|
<div className="grid grid-cols-1 gap-5 bg-gray-50 px-4 py-5 sm:gap-16 sm:px-0 sm:py-16">
|
||||||
<FeaturedGuideList
|
<FeaturedGuideList
|
||||||
heading="Guides"
|
heading="Guides"
|
||||||
guides={guides}
|
guides={guides.slice(0, 7)}
|
||||||
questions={questionGroups
|
questions={guides
|
||||||
.filter((questionGroup) => questionGroup.frontmatter.authorId)
|
.filter((guide) => guide.roadmapId === 'questions')
|
||||||
.slice(0, 7)}
|
.slice(0, 7)}
|
||||||
/>
|
/>
|
||||||
<FeaturedVideoList heading="Videos" videos={videos} />
|
<FeaturedVideoList heading="Videos" videos={videos} />
|
||||||
|
Reference in New Issue
Block a user