Skip to content

Commit 24a775a

Browse files
Update App.tsx
1 parent dd96b7f commit 24a775a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

App.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,16 @@ const App: React.FC = () => {
588588
<div className="bg-brand h-full" style={{ width: `${(completedLessons.length / syllabus.length) * 100}%` }}></div>
589589
</div>
590590
</div>
591+
592+
{/* Restored Advanced Path Switch Button for Mobile */}
593+
<div className="flex justify-between items-center mb-6 px-1">
594+
<h3 className="font-bold text-gray-900 dark:text-white text-lg font-serif">Curriculum</h3>
595+
<button onClick={handleSwitchTrack} className={`flex items-center gap-2 px-3 py-1.5 rounded-lg border text-[10px] font-bold transition-all ${userProfile?.isBeginner ? 'bg-brand/10 border-brand text-brand' : 'bg-gray-100 dark:bg-[#111] border-gray-300 dark:border-[#333] text-gray-500 dark:text-gray-400'}`}>
596+
{userProfile?.isBeginner ? <ToggleLeft size={16}/> : <ToggleRight size={16}/>}
597+
{userProfile?.isBeginner ? "Beginner" : "Advanced"}
598+
</button>
599+
</div>
600+
591601
<LearningRoadmap syllabus={syllabus} completedIds={completedLessons} onSelect={handleSelectLesson} activeId={activeLessonId} />
592602
</div>
593603
)}

0 commit comments

Comments
 (0)