fix: wrong props
This commit is contained in:
1 parent
0f5ccd185b
commit
7096a2c504
1 file changed
+1
-3
@@ -19,11 +19,9 @@ import '@vidstack/react/player/styles/default/layouts/video.css';
|
|||||||
interface Props extends InstanceProps<void> {
|
interface Props extends InstanceProps<void> {
|
||||||
magnet: string;
|
magnet: string;
|
||||||
backdrop: string;
|
backdrop: string;
|
||||||
className?: string;
|
|
||||||
onClose: () => void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const showPlayer = create(({ onResolve, magnet, backdrop, className }: Props) => {
|
const showPlayer = create(({ onResolve, magnet, backdrop }: Props) => {
|
||||||
const [index, setIndex] = useState(0);
|
const [index, setIndex] = useState(0);
|
||||||
|
|
||||||
const player = useRef<MediaPlayerInstance>(null);
|
const player = useRef<MediaPlayerInstance>(null);
|
||||||
|
|||||||
Reference in new issue
Block a user