diff --git a/app/custom/CustomControlBar.tsx b/app/custom/CustomControlBar.tsx index 1519ef2..ddca0ca 100644 --- a/app/custom/CustomControlBar.tsx +++ b/app/custom/CustomControlBar.tsx @@ -3,7 +3,6 @@ import React, { useState, useEffect, useMemo } from 'react'; import { DisconnectButton, - useIsRecording, useLayoutContext, useLocalParticipant, useRoomContext, @@ -97,7 +96,7 @@ export function CustomControlBar({ room, roomName }: CustomControlBarProps) { } else { response = await fetch( recordingEndpoint + - `/start?roomName=${room.name}&now=${now}&identity=${localParticipant.identity}`, + `/start?roomName=${room.name}&now=${now}&identity=${localParticipant.identity}`, ); } if (response.ok) { diff --git a/app/custom/layout/CustomVideoLayout.tsx b/app/custom/layout/CustomVideoLayout.tsx index 405b58b..bc0bcd1 100644 --- a/app/custom/layout/CustomVideoLayout.tsx +++ b/app/custom/layout/CustomVideoLayout.tsx @@ -7,7 +7,6 @@ import { usePinnedTracks, useLayoutContext, } from '@livekit/components-react'; -import { isEqualTrackRef } from '@livekit/components-core'; import { Track, Room } from 'livekit-client'; import { CustomControlBar } from '@/app/custom/CustomControlBar'; import ParticipantList from '@/app/custom/ParticipantList'; diff --git a/app/custom/layout/LayoutContextProvider.tsx b/app/custom/layout/LayoutContextProvider.tsx index f66e215..2876f9f 100644 --- a/app/custom/layout/LayoutContextProvider.tsx +++ b/app/custom/layout/LayoutContextProvider.tsx @@ -2,7 +2,6 @@ import React, { useState } from 'react'; import { LayoutContextProvider, TrackReferenceOrPlaceholder } from '@livekit/components-react'; import { CustomLayoutContextProvider } from '@/app/contexts/layout-context'; import { PinAction } from '@livekit/components-react/dist/context/pin-context'; -import { PanelTopInactive, Pi } from 'lucide-react'; interface CustomVideoLayoutContextProviderProps { children: React.ReactNode; diff --git a/lib/ParticipantTile.tsx b/lib/ParticipantTile.tsx index 0b62e8b..0e3cb8f 100644 --- a/lib/ParticipantTile.tsx +++ b/lib/ParticipantTile.tsx @@ -10,21 +10,12 @@ import { TrackRefContext, useEnsureTrackRef, useFeatureContext, - useIsEncrypted, useMaybeLayoutContext, useMaybeParticipantContext, useMaybeTrackRefContext, useParticipantTile, - ParticipantPlaceholder, - LockLockedIcon, - TrackMutedIndicator, - ParticipantName, ConnectionQualityIndicator, FocusToggle, - useIsSpeaking, - useIsMuted, - useTrackByName, - useTracks, } from '@livekit/components-react'; import { getAvatarColor, getInitials } from './client-utils'; @@ -137,9 +128,9 @@ export const ParticipantTile: ( {children ?? ( <> {isTrackReference(trackReference) && - (trackReference.publication?.kind === 'video' || - trackReference.source === Track.Source.Camera || - trackReference.source === Track.Source.ScreenShare) ? ( + (trackReference.publication?.kind === 'video' || + trackReference.source === Track.Source.Camera || + trackReference.source === Track.Source.ScreenShare) ? (