diff --git a/src/components/HeroSection/FavoriteRoadmaps.tsx b/src/components/HeroSection/FavoriteRoadmaps.tsx index 2a7d629b1..cfccf38fd 100644 --- a/src/components/HeroSection/FavoriteRoadmaps.tsx +++ b/src/components/HeroSection/FavoriteRoadmaps.tsx @@ -19,6 +19,7 @@ import type { UserProgress } from '../TeamProgress/TeamProgressPage.tsx'; import type { ProjectStatusDocument } from '../Projects/ListProjectSolutions.tsx'; import { getRelativeTimeString } from '../../lib/date'; import { useState } from 'react'; +import { cn } from '../../lib/classname.ts'; export type AIRoadmapType = { id: string; @@ -35,6 +36,8 @@ type ProgressRoadmapProps = { resourceType: ResourceType; resourceTitle: string; isFavorite?: boolean; + + isTrackable?: boolean; }; export function HeroRoadmap(props: ProgressRoadmapProps) { @@ -46,21 +49,31 @@ export function HeroRoadmap(props: ProgressRoadmapProps) { resourceTitle, isFavorite, allowFavorite = true, + isTrackable = true, } = props; return ( {resourceTitle} - + {isTrackable && ( + + )} {allowFavorite && (
-

+

{project.title}

))}