Skip to content

Commit 4c56f30

Browse files
committed
Update package.json and remove clsx import in VideoPlayer.tsx
1 parent a853a76 commit 4c56f30

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"name": "@graphland/react-video-player",
3-
"author": "KingRayhan",
4-
"version": "0.1.0",
3+
"author": {
4+
"email": "[email protected]",
5+
"name": "kingrayhan",
6+
"url": "https://rayhan.dev"
7+
},
8+
"version": "0.1.1",
59
"license": "MIT",
610
"main": "dist/index.js",
711
"typings": "dist/index.d.ts",
@@ -77,7 +81,6 @@
7781
},
7882
"dependencies": {
7983
"@videojs/themes": "^1.0.1",
80-
"clsx": "^2.0.0",
8184
"video.js": "^8.6.1"
8285
}
8386
}

src/VideoPlayer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import '@videojs/themes/dist/forest/index.css';
1414
import '@videojs/themes/dist/sea/index.css';
1515
import videojs, { ReadyCallback } from 'video.js';
1616
import './VideoPlayer.css';
17-
import clsx from 'clsx';
1817

1918
export interface VideoPlayerProps {
2019
theme?: 'city' | 'fantasy' | 'forest' | 'sea';
@@ -84,7 +83,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
8483
<div className="gl-video-player__wrapper">
8584
<video
8685
ref={videoRef}
87-
className={clsx(`video-js gl-video-player__video vjs-theme-${theme}`)}
86+
className={`video-js gl-video-player__video vjs-theme-${theme}`}
8887
controls
8988
autoPlay={autoPlay}
9089
preload="auto"

0 commit comments

Comments
 (0)