Skip to content

Commit

Permalink
build error solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Puneet-NJ committed Jan 7, 2025
1 parent 704e01a commit 66b9ec1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
6 changes: 2 additions & 4 deletions frontend/src/Components/PurchasedCourseComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ export function PurchasedCourseComp() {
<div className="space-y-3">
{folder.courseContents.map((content) => (
<Link
key={content.id}
to={`/purchased/${course.id}/${folder.id}/${content.id}`}
>
<div
key={content.id}
className="flex items-center justify-between p-3 rounded-md bg-gray-100 hover:bg-gray-100 transition-colors"
>
<div className="flex items-center justify-between p-3 rounded-md bg-gray-100 hover:bg-gray-100 transition-colors">
<div className="flex items-center gap-3">
<Video className="h-4 w-4 text-gray-600"></Video>
<span className="font-medium">{content.name}</span>
Expand Down
15 changes: 13 additions & 2 deletions frontend/src/Components/VideoJS.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
import { useEffect, useRef } from "react";
import videojs from "video.js";
import Player from "video.js/dist/types/player";
import { PlayerOptions } from "video.js/dist/types/player";
// import VideoJsPlayerOptions from "video.js";
import "video.js/dist/video-js.css";

type VideoJSProps = {
options: PlayerOptions;
options: {
autoplay: boolean;
controls: boolean;
responsive: boolean;
fluid: boolean;
sources: [
{
src: string;
type: string;
}
];
};
onReady?: (player: Player) => void;
};

Expand Down

0 comments on commit 66b9ec1

Please sign in to comment.