We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a0f1bb commit 767a7c7Copy full SHA for 767a7c7
components/livekit/video-tile.tsx
@@ -9,11 +9,10 @@ export const VideoTile = ({
9
trackRef,
10
className,
11
ref,
12
-}: React.ComponentProps<typeof VideoTrack>) => {
+}: React.ComponentProps<'div'> & React.ComponentProps<typeof VideoTrack>) => {
13
return (
14
- <div className={cn('bg-muted overflow-hidden rounded-md', className)}>
+ <div ref={ref} className={cn('bg-muted overflow-hidden rounded-md', className)}>
15
<MotionVideoTrack
16
- ref={ref}
17
trackRef={trackRef}
18
width={trackRef?.publication.dimensions?.width ?? 0}
19
height={trackRef?.publication.dimensions?.height ?? 0}
0 commit comments