mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-03 07:42:03 +00:00
Update src/pages/course/[slug]/index.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
176a58d42d
commit
f3d667a0ba
@ -604,9 +604,12 @@ const Course = () => {
|
||||
activeIndex={activeIndex}
|
||||
onLessonSelect={(index) => {
|
||||
handleLessonSelect(index);
|
||||
if (isMobileView) {
|
||||
toggleTab(getTabItems().findIndex(item => item.label === 'Content'));
|
||||
}
|
||||
onLessonSelect={(index) => {
|
||||
handleLessonSelect(index);
|
||||
if (isMobileView) {
|
||||
setActiveTab('content'); // Use the tab name directly
|
||||
}
|
||||
}}
|
||||
}}
|
||||
completedLessons={completedLessons}
|
||||
isMobileView={isMobileView}
|
||||
|
Loading…
x
Reference in New Issue
Block a user