From eadffba014100f52b7e2f0e3e550d4ac291f3a99 Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Wed, 20 Nov 2024 14:09:50 +0100 Subject: [PATCH] feat: optimize video player import to use lazy loading in Video component (#235) --- apps/web/app/modules/Courses/Lesson/LessonItems/File/Video.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/app/modules/Courses/Lesson/LessonItems/File/Video.tsx b/apps/web/app/modules/Courses/Lesson/LessonItems/File/Video.tsx index 74ff3532c..db9842eb4 100644 --- a/apps/web/app/modules/Courses/Lesson/LessonItems/File/Video.tsx +++ b/apps/web/app/modules/Courses/Lesson/LessonItems/File/Video.tsx @@ -1,5 +1,5 @@ import { useParams } from "@remix-run/react"; -import ReactPlayer from "react-player"; +import ReactPlayer from "react-player/lazy"; import { useMarkLessonItemAsCompleted } from "~/api/mutations/useMarkLessonItemAsCompleted";