Skip to content

Commit

Permalink
fix: compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlaz committed Dec 22, 2023
1 parent 24babd3 commit 2499a9a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
import { forwardRef, MouseEventHandler, useCallback } from 'react';
import { forwardRef } from 'react';

import { OwnCapability } from '@stream-io/video-client';
import { Restricted, useI18n, useCall } from '@stream-io/video-react-bindings';
import { Restricted, useI18n } from '@stream-io/video-react-bindings';
import { CompositeButton, IconButton, TextButton } from '../Button/';
import { Icon } from '../Icon';
import { MenuToggle, MenuVisualType, ToggleMenuButtonProps } from '../Menu';
import {
MenuToggle,
MenuVisualType,
ToggleMenuButtonProps,
useMenuPortalContext,
} from '../Menu';
import { LoadingIndicator } from '../LoadingIndicator';
import { useToggleCallRecording } from '../../hooks';

export type RecordCallButtonProps = {
caption?: string;
};

export type RecordEndConfirmationProps = {
close: () => void;
};

const RecordEndConfirmation = ({ close }: RecordEndConfirmationProps) => {
const RecordEndConfirmation = () => {
const { t } = useI18n();
const { toggleCallRecording, isAwaitingResponse } = useToggleCallRecording();

const { close } = useMenuPortalContext();

return (
<div className="str-video__end-recording__confirmation">
<div className="str-video__end-recording__header">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { PropsWithChildren, useEffect, useState } from 'react';
import { useI18n } from '@stream-io/video-react-bindings';
import { useToggleCallRecording } from '../../hooks';
import { Notification } from './Notification';
import { IconButton } from '../Button';

export type RecordingInProgressNotificationProps = {
text?: string;
Expand Down
3 changes: 1 addition & 2 deletions sample-apps/react/react-dogfood/components/ActiveCall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import {
PermissionRequests,
ReactionsButton,
RecordCallConfirmationButton,
RecordingInProgressNotification,
ScreenShareButton,
SpeakingWhileMutedNotification,
useCallStateHooks,
RecordingInProgressNotification,
LeaveCallRecordingInProgressConfirmation,
} from '@stream-io/video-react-sdk';
import { StreamChat } from 'stream-chat';

Expand Down

0 comments on commit 2499a9a

Please sign in to comment.