diff --git a/src/components/GenerateCourse/AICourse.tsx b/src/components/GenerateCourse/AICourse.tsx
index b002f641f..5f01d6733 100644
--- a/src/components/GenerateCourse/AICourse.tsx
+++ b/src/components/GenerateCourse/AICourse.tsx
@@ -1,6 +1,5 @@
-import { Settings2Icon, WandIcon } from 'lucide-react';
+import { WandIcon } from 'lucide-react';
import { useEffect, useState } from 'react';
-import { cn } from '../../lib/classname';
import { isLoggedIn } from '../../lib/jwt';
import { showLoginPopup } from '../../lib/popup';
import { FineTuneCourse } from './FineTuneCourse';
@@ -11,6 +10,7 @@ import {
getLastSessionId,
storeFineTuneData,
} from '../../lib/ai';
+import { cn } from '../../lib/classname';
export const difficultyLevels = [
'beginner',
@@ -94,22 +94,46 @@ export function AICourse(props: AICourseProps) {
value={keyword}
onChange={(e) => setKeyword(e.target.value)}
onKeyDown={handleKeyDown}
- placeholder="Ask tutor to teach you..."
+ placeholder="e.g. JavaScript Promises, React Hooks, Go Routines etc"
className="w-full rounded-md border-none bg-transparent px-4 pt-4 pb-8 text-gray-900 focus:outline-hidden max-sm:placeholder:text-base"
maxLength={50}
/>
-
-
-
+
+
+
+
+
+
+
@@ -123,20 +147,6 @@ export function AICourse(props: AICourseProps) {
setGoal={setGoal}
setCustomInstructions={setCustomInstructions}
/>
-
-
diff --git a/src/components/GenerateCourse/FineTuneCourse.tsx b/src/components/GenerateCourse/FineTuneCourse.tsx
index 0d6cef085..e727c8dfb 100644
--- a/src/components/GenerateCourse/FineTuneCourse.tsx
+++ b/src/components/GenerateCourse/FineTuneCourse.tsx
@@ -1,5 +1,3 @@
-import { cn } from '../../lib/classname';
-
type QuestionProps = {
label: string;
placeholder: string;
@@ -51,52 +49,31 @@ export function FineTuneCourse(props: FineTuneCourseProps) {
setHasFineTuneData,
} = props;
- return (
-
-
+ if (!hasFineTuneData) {
+ return null;
+ }
- {hasFineTuneData && (
-
-
-
-
-
- )}
+ return (
+
+
+
+
);
}