Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/study/explanation/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const SUBJECTS = [
{ id: "history", name: "History", icon: "history_edu", color: "text-yellow-400", bg: "bg-yellow-500/10", border: "border-yellow-500/20" },
]

const SUBJECT_OPTIONS = SUBJECTS.map(s => ({ value: s.id, label: s.name }))

export default function SmartExplanation() {
const [query, setQuery] = useState("")
const [chatHistory, setChatHistory] = useState<Message[]>([])
Expand Down Expand Up @@ -147,7 +149,7 @@ export default function SmartExplanation() {
<div className="flex items-center gap-2 mt-1">
<span className="text-xs text-slate-500 dark:text-text-secondary">Subject:</span>
<Select
options={SUBJECTS.map(s => ({ value: s.id, label: s.name }))}
options={SUBJECT_OPTIONS}
value={selectedSubject.id}
onChange={(val) => setSelectedSubject(SUBJECTS.find(s => s.id === val) || SUBJECTS[0])}
className="w-48"
Expand Down
30 changes: 0 additions & 30 deletions dev_server.log

This file was deleted.