diff --git a/src/components/FAQs/FAQs.tsx b/src/components/FAQs/FAQs.tsx
index b80aae3c9..9da9ef96a 100644
--- a/src/components/FAQs/FAQs.tsx
+++ b/src/components/FAQs/FAQs.tsx
@@ -9,9 +9,6 @@ type FAQsProps = {
export function FAQs(props: FAQsProps) {
const { faqs } = props;
- if (faqs.length === 0) {
- return null;
- }
const [activeQuestionIndex, setActiveQuestionIndex] = useState(0);
@@ -25,35 +22,18 @@ export function FAQs(props: FAQsProps) {
- {faqs.map((faq, questionIndex) => {
- const isTextDescription =
- typeof faq?.description === 'string' &&
- faq?.description?.length > 0;
-
- return (
-
setActiveQuestionIndex(questionIndex)}
- >
-
- {!isTextDescription
- ? guideRenderer.render(faq.description)
- : null}
-
-
- );
- })}
+ {faqs.map((faq, questionIndex) => (
+
setActiveQuestionIndex(questionIndex)}
+ >
+
+ {guideRenderer.render(faq.description)}
+
+
+ ))}
diff --git a/src/pages/[roadmapId]/courses.astro b/src/pages/[roadmapId]/courses.astro
index 028279fdd..17b4514a4 100644
--- a/src/pages/[roadmapId]/courses.astro
+++ b/src/pages/[roadmapId]/courses.astro
@@ -1,20 +1,19 @@
----
+
diff --git a/src/pages/[roadmapId]/index.astro b/src/pages/[roadmapId]/index.astro
index 40356bbbd..ecf9988b2 100644
--- a/src/pages/[roadmapId]/index.astro
+++ b/src/pages/[roadmapId]/index.astro
@@ -83,7 +83,7 @@ if (faqs.length) {
}
const projects = await getProjectsByRoadmapId(roadmapId);
-const courses = roadmapData.courses || [];
+// const courses = roadmapData.courses || [];
---
diff --git a/src/queries/official-roadmap.ts b/src/queries/official-roadmap.ts
index 867ba3d94..89a2138c1 100644
--- a/src/queries/official-roadmap.ts
+++ b/src/queries/official-roadmap.ts
@@ -19,21 +19,8 @@ export type OfficialRoadmapQuestion = {
description: any;
};
-export type OfficialRoadmapCourse = {
- _id: string;
- title: string;
- description: string;
- link: string;
- instructor: {
- name: string;
- image: string;
- title: string;
- };
- features: string[];
-};
-
export interface OfficialRoadmapDocument {
- _id?: string;
+ _id: string;
order: number;
title: {
@@ -43,12 +30,12 @@ export interface OfficialRoadmapDocument {
description: string;
slug: string;
- nodes: any[];
- edges: any[];
+ nodes: Node[];
+ edges: Edge[];
draft: {
- nodes: any[];
- edges: any[];
+ nodes: Node[];
+ edges: Edge[];
};
seo: {
@@ -72,7 +59,6 @@ export interface OfficialRoadmapDocument {
questions?: OfficialRoadmapQuestion[];
relatedRoadmaps?: string[];
- courses?: OfficialRoadmapCourse[];
createdAt: Date;
updatedAt: Date;