From d62606da197c908505016e392a97adc2757657c2 Mon Sep 17 00:00:00 2001 From: KaustubhKumar05 Date: Wed, 3 Jan 2024 11:39:36 +0530 Subject: [PATCH] fix: types --- .../src/Prebuilt/components/VirtualBackground/VBPicker.tsx | 4 ++-- packages/roomkit-react/src/Prebuilt/layouts/SidePane.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/roomkit-react/src/Prebuilt/components/VirtualBackground/VBPicker.tsx b/packages/roomkit-react/src/Prebuilt/components/VirtualBackground/VBPicker.tsx index 7b6d0c4404..698bbe92a5 100644 --- a/packages/roomkit-react/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +++ b/packages/roomkit-react/src/Prebuilt/components/VirtualBackground/VBPicker.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useRef, useState } from 'react'; import { HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background'; -import { VirtualBackground, VirtualBackgroundMedia } from '@100mslive/types-prebuilt/elements/virtual_background'; +import { VirtualBackgroundMedia } from '@100mslive/types-prebuilt/elements/virtual_background'; import { HMSRoomState, selectIsLargeRoom, @@ -28,7 +28,7 @@ import { defaultMedia, vbPlugin } from './constants'; const iconDims = { height: '40px', width: '40px' }; const MAX_RETRIES = 2; -export const VBPicker = ({ background_media: backgroundMedia = [] }: VirtualBackground = {}) => { +export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBackgroundMedia[] }) => { const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB); const hmsActions = useHMSActions(); const role = useHMSStore(selectLocalPeerRole); diff --git a/packages/roomkit-react/src/Prebuilt/layouts/SidePane.tsx b/packages/roomkit-react/src/Prebuilt/layouts/SidePane.tsx index e0889a4b62..4f6678c92f 100644 --- a/packages/roomkit-react/src/Prebuilt/layouts/SidePane.tsx +++ b/packages/roomkit-react/src/Prebuilt/layouts/SidePane.tsx @@ -41,7 +41,7 @@ const SidePane = ({ ViewComponent = ; } if (sidepane === SIDE_PANE_OPTIONS.VB) { - ViewComponent = ; + ViewComponent = ; } useEffect(() => {