diff --git a/packages/ui-voip/src/components/Widget/WidgetHeader.tsx b/packages/ui-voip/src/components/Widget/WidgetHeader.tsx index 8d635607be9a9..733c8c21441cc 100644 --- a/packages/ui-voip/src/components/Widget/WidgetHeader.tsx +++ b/packages/ui-voip/src/components/Widget/WidgetHeader.tsx @@ -1,5 +1,5 @@ import { Box } from '@rocket.chat/fuselage'; -import type { ReactElement, ReactNode } from 'react'; +import type { ReactNode } from 'react'; type WidgetHeaderProps = { title: ReactNode; @@ -7,7 +7,7 @@ type WidgetHeaderProps = { }; // TODO: A11Y - duration/title -const WidgetHeader = ({ title, children }: WidgetHeaderProps): ReactElement => { +const WidgetHeader = ({ title, children }: WidgetHeaderProps) => { return ( diff --git a/packages/ui-voip/src/context/MediaCallInstanceContext.ts b/packages/ui-voip/src/context/MediaCallInstanceContext.ts index a722a7ea0fd32..f520079ba5488 100644 --- a/packages/ui-voip/src/context/MediaCallInstanceContext.ts +++ b/packages/ui-voip/src/context/MediaCallInstanceContext.ts @@ -13,7 +13,7 @@ export type Signals = { type MediaCallInstanceContextValue = { instance: MediaSignalingSession | undefined; signalEmitter: Emitter; - audioElement: RefObject | undefined; + audioElement: RefObject | undefined; openRoomId: string | undefined; inRoomView: boolean; setOpenRoomId: (openRoomId: string | undefined) => void; diff --git a/packages/ui-voip/src/views/CallHistoryContextualbar/CallHistoryActions.stories.tsx b/packages/ui-voip/src/views/CallHistoryContextualbar/CallHistoryActions.stories.tsx index 6e3ad37b34a87..a42ec739e3465 100644 --- a/packages/ui-voip/src/views/CallHistoryContextualbar/CallHistoryActions.stories.tsx +++ b/packages/ui-voip/src/views/CallHistoryContextualbar/CallHistoryActions.stories.tsx @@ -1,6 +1,5 @@ import { mockAppRoot } from '@rocket.chat/mock-providers'; import type { Meta, StoryFn, StoryObj } from '@storybook/react'; -import type { ReactElement } from 'react'; import type { HistoryActionCallbacks } from './CallHistoryActions'; import CallHistoryActions from './CallHistoryActions'; @@ -24,7 +23,7 @@ const meta = { }) .withDefaultLanguage('en-US') .buildStoryDecorator(), - (Story): ReactElement => , + (Story) => , ], } satisfies Meta; @@ -39,7 +38,7 @@ const getArgs = (index: number) => { }; const getDecorator = (state: State) => { - return (Story: StoryFn): ReactElement => ( + return (Story: StoryFn) => ( diff --git a/packages/ui-voip/src/views/CallHistoryContextualbar/CallHistoryContextualbar.stories.tsx b/packages/ui-voip/src/views/CallHistoryContextualbar/CallHistoryContextualbar.stories.tsx index 77c3906e38c58..2b471c936cde1 100644 --- a/packages/ui-voip/src/views/CallHistoryContextualbar/CallHistoryContextualbar.stories.tsx +++ b/packages/ui-voip/src/views/CallHistoryContextualbar/CallHistoryContextualbar.stories.tsx @@ -1,6 +1,5 @@ import { mockAppRoot } from '@rocket.chat/mock-providers'; import type { Meta, StoryObj } from '@storybook/react'; -import type { ReactElement } from 'react'; import CallHistoryContextualbar from './CallHistoryContextualbar'; import MockedMediaCallProvider from '../../providers/MockedMediaCallProvider'; @@ -31,7 +30,7 @@ const meta = { }) .withDefaultLanguage('en-US') .buildStoryDecorator(), - (Story): ReactElement => ( + (Story) => ( diff --git a/packages/ui-voip/src/views/PermissionFlow/PermissionFlowModal.stories.tsx b/packages/ui-voip/src/views/PermissionFlow/PermissionFlowModal.stories.tsx index 86f9815337519..c71cb6dc6a1f6 100644 --- a/packages/ui-voip/src/views/PermissionFlow/PermissionFlowModal.stories.tsx +++ b/packages/ui-voip/src/views/PermissionFlow/PermissionFlowModal.stories.tsx @@ -1,6 +1,5 @@ import { mockAppRoot } from '@rocket.chat/mock-providers'; import type { Meta, StoryObj } from '@storybook/react'; -import type { ReactElement } from 'react'; import PermissionFlowModal from './PermissionFlowModal'; @@ -21,7 +20,7 @@ const meta = { 'Your web browser stopped {{workspaceUrl}} from using your microphone and/or speaker.\n\nAllow speaker and microphone access in your browser settings to prevent seeing this message again.', }) .buildStoryDecorator(), - (Story): ReactElement => , + (Story) => , ], } satisfies Meta;