Add functionality to add note to the roadmaps

This commit is contained in:
Kamran Ahmed committed 2023-01-19 15:05:25 +04:00
1 parent 6187b1dc52
commit f5e980d8ec
10 files changed
+72 -20

No files matched your search

+5 -8
View File
@@ -1,26 +1,21 @@
---
import Icon from './Icon.astro';
import ResourcesAlert from './ResourcesAlert.astro';
import RoadmapNote from './RoadmapNote.astro';
import TopicSearch from './TopicSearch/TopicSearch.astro';
import YouTubeAlert from './YouTubeAlert.astro';
export interface Props {
title: string;
description: string;
note?: string;
roadmapId: string;
isUpcoming?: boolean;
hasSearch?: boolean;
hasTopics?: boolean;
}
const {
title,
description,
roadmapId,
isUpcoming = false,
hasSearch = false,
hasTopics = false,
} = Astro.props;
const { title, description, roadmapId, isUpcoming = false, hasSearch = false, note, hasTopics = false } = Astro.props;
const isRoadmapReady = !isUpcoming;
---
@@ -114,3 +109,5 @@ const isRoadmapReady = !isUpcoming;
{hasSearch && <TopicSearch />}
</div>
</div>
{note && <RoadmapNote text={note} />}