Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/ui-voip/src/components/Widget/WidgetHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Box } from '@rocket.chat/fuselage';
import type { ReactElement, ReactNode } from 'react';
import type { ReactNode } from 'react';

type WidgetHeaderProps = {
title: ReactNode;
children: ReactNode;
};

// TODO: A11Y - duration/title
const WidgetHeader = ({ title, children }: WidgetHeaderProps): ReactElement => {
const WidgetHeader = ({ title, children }: WidgetHeaderProps) => {
return (
<Box is='header' mi={12} mb={4} display='flex' alignItems='center' justifyContent='space-between'>
<Box is='h3' color='titles-labels' fontScale='p1b' id='rcx-media-call-widget-title'>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/context/MediaCallInstanceContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type Signals = {
type MediaCallInstanceContextValue = {
instance: MediaSignalingSession | undefined;
signalEmitter: Emitter<Signals>;
audioElement: RefObject<HTMLAudioElement> | undefined;
audioElement: RefObject<HTMLAudioElement | null> | undefined;
openRoomId: string | undefined;
inRoomView: boolean;
setOpenRoomId: (openRoomId: string | undefined) => void;
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -24,7 +23,7 @@ const meta = {
})
.withDefaultLanguage('en-US')
.buildStoryDecorator(),
(Story): ReactElement => <Story />,
(Story) => <Story />,
],
} satisfies Meta<typeof CallHistoryActions>;

Expand All @@ -39,7 +38,7 @@ const getArgs = (index: number) => {
};

const getDecorator = (state: State) => {
return (Story: StoryFn): ReactElement => (
return (Story: StoryFn) => (
<MockedMediaCallProvider state={state}>
<Story />
</MockedMediaCallProvider>
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -31,7 +30,7 @@ const meta = {
})
.withDefaultLanguage('en-US')
.buildStoryDecorator(),
(Story): ReactElement => (
(Story) => (
<MockedMediaCallProvider>
<Story />
</MockedMediaCallProvider>
Expand Down
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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 />,
(Story) => <Story />,
],
} satisfies Meta<typeof PermissionFlowModal>;

Expand Down
Loading