diff --git a/src/components/AstroIcon.astro b/src/components/AstroIcon.astro index 6448ffff1..eca2b065b 100644 --- a/src/components/AstroIcon.astro +++ b/src/components/AstroIcon.astro @@ -1,6 +1,5 @@ --- import { parse } from 'node-html-parser'; -import type { Attributes } from 'node-html-parser/dist/nodes/html'; export interface Props { icon: string; @@ -15,7 +14,6 @@ async function getSVG(name: string) { eager: true, }); - if (!(filepath in files)) { throw new Error(`${filepath} not found`); } diff --git a/src/components/Course/CourseLayout.tsx b/src/components/Course/CourseLayout.tsx index 00413614f..e13fb7428 100644 --- a/src/components/Course/CourseLayout.tsx +++ b/src/components/Course/CourseLayout.tsx @@ -1,6 +1,6 @@ import { ChevronLeft, ChevronRight, Loader2 } from 'lucide-react'; import { CourseSidebar, type CourseSidebarProps } from './CourseSidebar'; -import {type ReactNode, useEffect, useMemo, useState} from 'react'; +import { type ReactNode, useEffect, useMemo, useState } from 'react'; import { useCompleteLessonMutation, useCourseProgress, @@ -12,6 +12,8 @@ import { getPercentage } from '../../helper/number'; import { cn } from '../../lib/classname'; import { CourseNotes } from '../CourseNotes/CourseNotes'; import { CourseAI } from '../CourseAI/CourseAI'; +import { RoadmapIcon } from '../ReactIcons/RoadmapIcon'; +import { RoadmapLogoIcon } from '../ReactIcons/RoadmapLogo'; export type CourseLayoutProps = { children: ReactNode; @@ -123,7 +125,7 @@ export function CourseLayout(props: CourseLayoutProps) {
-
-

{title}

-
- - {completedPercentage}% - {' '} - Completed + + + Back to All Courses + + +
+
+

{title}

+
+ + {completedPercentage}% + {' '} + Completed +
diff --git a/src/components/Navigation/Navigation.astro b/src/components/Navigation/Navigation.astro index 4e4c567fa..ee39d904a 100644 --- a/src/components/Navigation/Navigation.astro +++ b/src/components/Navigation/Navigation.astro @@ -1,11 +1,9 @@ --- -import { Menu } from 'lucide-react'; +import { AccountStreak } from '../AccountStreak/AccountStreak'; import Icon from '../AstroIcon.astro'; import { NavigationDropdown } from '../NavigationDropdown'; -import { AccountDropdown } from './AccountDropdown'; -import NewIndicator from './NewIndicator.astro'; -import { AccountStreak } from '../AccountStreak/AccountStreak'; import { RoadmapDropdownMenu } from '../RoadmapDropdownMenu/RoadmapDropdownMenu'; +import { AccountDropdown } from './AccountDropdown'; ---