Fix timeline chapter click by passing missing props to VideoPlayer

- Pass playerRef, currentTime, accentColor, and setCurrentTime to VideoPlayer
- This fixes "Cannot read properties of undefined (reading 'current')" error
- Timeline chapter items can now successfully jump to specific timestamps

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
dwindown
2026-01-04 11:46:07 +07:00
parent 15760d6430
commit 8fc31b402d

View File

@@ -597,7 +597,13 @@ export default function Bootcamp() {
)} )}
</div> </div>
<VideoPlayer lesson={selectedLesson} /> <VideoPlayer
lesson={selectedLesson}
playerRef={playerRef}
currentTime={currentTime}
accentColor={accentColor}
setCurrentTime={setCurrentTime}
/>
{selectedLesson.content && ( {selectedLesson.content && (
<Card className="border-2 border-border mb-6"> <Card className="border-2 border-border mb-6">