mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-05 00:32: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}
|
activeIndex={activeIndex}
|
||||||
onLessonSelect={(index) => {
|
onLessonSelect={(index) => {
|
||||||
handleLessonSelect(index);
|
handleLessonSelect(index);
|
||||||
if (isMobileView) {
|
onLessonSelect={(index) => {
|
||||||
toggleTab(getTabItems().findIndex(item => item.label === 'Content'));
|
handleLessonSelect(index);
|
||||||
}
|
if (isMobileView) {
|
||||||
|
setActiveTab('content'); // Use the tab name directly
|
||||||
|
}
|
||||||
|
}}
|
||||||
}}
|
}}
|
||||||
completedLessons={completedLessons}
|
completedLessons={completedLessons}
|
||||||
isMobileView={isMobileView}
|
isMobileView={isMobileView}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user