From bbbdb8c7fdb8f507662b4c65a9a9e2f94d5ba654 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 5 Mar 2025 15:38:05 +0000 Subject: [PATCH] Update UI --- .../GenerateCourse/AICourseModuleView.tsx | 47 +++++++++---------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/src/components/GenerateCourse/AICourseModuleView.tsx b/src/components/GenerateCourse/AICourseModuleView.tsx index d10b4eb58..4b80f5164 100644 --- a/src/components/GenerateCourse/AICourseModuleView.tsx +++ b/src/components/GenerateCourse/AICourseModuleView.tsx @@ -1,4 +1,10 @@ -import { ChevronLeft, ChevronRight, Loader2Icon, LockIcon } from 'lucide-react'; +import { + CheckIcon, + ChevronLeft, + ChevronRight, + Loader2Icon, + LockIcon, +} from 'lucide-react'; import { cn } from '../../lib/classname'; import { useEffect, useMemo, useState } from 'react'; import { isLoggedIn, removeAuthToken } from '../../lib/jwt'; @@ -173,47 +179,38 @@ export function AICourseModuleView(props: AICourseModuleViewProps) { return (
-
-
-
- Module {activeModuleIndex + 1} of {totalModules} +
+ {(isGenerating || isLoading) && ( +
+
-

- {currentModuleTitle?.replace(/^Module\s*?\d+[\.:]\s*/, '') || - 'Loading...'} -

-
-
+ )} -
Lesson {activeLessonIndex + 1} of {totalLessons}
-
- -
-

- {currentLessonTitle?.replace(/^Lesson\s*?\d+[\.:]\s*/, '')} -

- - {(isGenerating || isLoading) && ( -
- -
- )} {!isGenerating && !isLoading && !isLessonDone && ( )}
+

+ {currentLessonTitle?.replace(/^Lesson\s*?\d+[\.:]\s*/, '')} +

+ {!error && isLoggedIn() && (