Removed unused imports
This commit is contained in:
parent
a585842062
commit
d4a91a32cc
@ -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) {
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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) ? (
|
||||
<VideoTrack
|
||||
trackRef={trackReference}
|
||||
onSubscriptionStatusChanged={handleSubscribe}
|
||||
|
||||
@ -6,7 +6,6 @@ import {
|
||||
useLocalParticipant,
|
||||
MediaDeviceMenu,
|
||||
TrackToggle,
|
||||
useRoomContext,
|
||||
} from '@livekit/components-react';
|
||||
import type { KrispNoiseFilterProcessor } from '@livekit/krisp-noise-filter';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user