UI and error handling

feat/ai-roadmap
Kamran Ahmed 1 month ago
parent 1174a6c9a9
commit 4b560c80de
  1. 14
      src/components/GenerateCourse/AICourseContent.tsx
  2. 2
      src/components/GenerateCourse/AICourseRoadmapView.tsx

@ -291,14 +291,14 @@ export function AICourseContent(props: AICourseContentProps) {
onUpgrade={() => setShowUpgradeModal(true)} onUpgrade={() => setShowUpgradeModal(true)}
onShowLimits={() => setShowAILimitsPopup(true)} onShowLimits={() => setShowAILimitsPopup(true)}
/> />
</div>
<AIRoadmapViewSwitch <AIRoadmapViewSwitch
viewMode={viewMode} viewMode={viewMode}
setViewMode={setViewMode} setViewMode={setViewMode}
isLoading={isLoading} isLoading={isLoading}
variant="text" variant="text"
/> />
</div>
</div> </div>
</header> </header>

@ -199,7 +199,7 @@ export function AICourseRoadmapView(props: AICourseRoadmapViewProps) {
); );
return ( return (
<div className="relative mx-auto min-h-[500px] rounded-xl border border-gray-200 bg-white shadow-sm lg:max-w-7xl"> <div className="relative mx-auto min-h-[500px] rounded-xl border border-gray-200 bg-white shadow-sm lg:max-w-5xl">
{isLoading && ( {isLoading && (
<div className="absolute inset-0 flex h-full w-full items-center justify-center"> <div className="absolute inset-0 flex h-full w-full items-center justify-center">
<Loader2Icon className="h-10 w-10 animate-spin stroke-[3px]" /> <Loader2Icon className="h-10 w-10 animate-spin stroke-[3px]" />

Loading…
Cancel
Save