diff --git a/src/components/RoadmapAIChat/RoadmapAIChat.tsx b/src/components/RoadmapAIChat/RoadmapAIChat.tsx index b08d38815..979d12714 100644 --- a/src/components/RoadmapAIChat/RoadmapAIChat.tsx +++ b/src/components/RoadmapAIChat/RoadmapAIChat.tsx @@ -17,9 +17,7 @@ import { import { BotIcon, Loader2Icon, PauseCircleIcon, SendIcon } from 'lucide-react'; import { ChatEditor } from '../ChatEditor/ChatEditor'; import { roadmapTreeMappingOptions } from '../../queries/roadmap-tree'; -import { - type AllowedAIChatRole -} from '../GenerateCourse/AICourseLessonChat'; +import { type AllowedAIChatRole } from '../GenerateCourse/AICourseLessonChat'; import { isLoggedIn, removeAuthToken } from '../../lib/jwt'; import type { JSONContent, Editor } from '@tiptap/core'; import { flushSync } from 'react-dom'; @@ -285,23 +283,25 @@ export function RoadmapAIChat(props: RoadmapAIChatProps) { }, []); return ( -
-
+
+
{isLoading && (
)} {roadmapJSONData?.json && !isLoading && ( - +
+ +
)}
-
+