Skip to content

Commit 767a7c7

Browse files
fix: VideoTile transitions (#175)
1 parent 4a0f1bb commit 767a7c7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/livekit/video-tile.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ export const VideoTile = ({
99
trackRef,
1010
className,
1111
ref,
12-
}: React.ComponentProps<typeof VideoTrack>) => {
12+
}: React.ComponentProps<'div'> & React.ComponentProps<typeof VideoTrack>) => {
1313
return (
14-
<div className={cn('bg-muted overflow-hidden rounded-md', className)}>
14+
<div ref={ref} className={cn('bg-muted overflow-hidden rounded-md', className)}>
1515
<MotionVideoTrack
16-
ref={ref}
1716
trackRef={trackRef}
1817
width={trackRef?.publication.dimensions?.width ?? 0}
1918
height={trackRef?.publication.dimensions?.height ?? 0}

0 commit comments

Comments
 (0)