From 5c90736213e65f268433bdcd5926a074ab39debd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Sat, 7 Aug 2021 08:54:40 +0200 Subject: [PATCH] Export components by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/voip/CallPreview.tsx | 2 +- src/components/views/voip/CallView.tsx | 2 +- src/components/views/voip/CallView/CallViewHeader.tsx | 4 +++- src/components/views/voip/PictureInPictureDragger.tsx | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/views/voip/CallPreview.tsx b/src/components/views/voip/CallPreview.tsx index 37ac621116..2aa3080e60 100644 --- a/src/components/views/voip/CallPreview.tsx +++ b/src/components/views/voip/CallPreview.tsx @@ -28,7 +28,7 @@ import { CallEvent, CallState, MatrixCall } from 'matrix-js-sdk/src/webrtc/call' import { MatrixClientPeg } from '../../../MatrixClientPeg'; import { replaceableComponent } from "../../../utils/replaceableComponent"; import { EventSubscription } from 'fbemitter'; -import { PictureInPictureDragger } from './PictureInPictureDragger'; +import PictureInPictureDragger from './PictureInPictureDragger'; const SHOW_CALL_IN_STATES = [ CallState.Connected, diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 851095d55a..d3371b8456 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -42,7 +42,7 @@ import DesktopCapturerSourcePicker from "../elements/DesktopCapturerSourcePicker import Modal from '../../../Modal'; import { SDPStreamMetadataPurpose } from 'matrix-js-sdk/src/webrtc/callEventTypes'; import CallViewSidebar from './CallViewSidebar'; -import { CallViewHeader } from './CallView/CallViewHeader'; +import CallViewHeader from './CallView/CallViewHeader'; import AccessibleTooltipButton from "../elements/AccessibleTooltipButton"; import { Alignment } from "../elements/Tooltip"; diff --git a/src/components/views/voip/CallView/CallViewHeader.tsx b/src/components/views/voip/CallView/CallViewHeader.tsx index acc577c5d9..0b4beb18e8 100644 --- a/src/components/views/voip/CallView/CallViewHeader.tsx +++ b/src/components/views/voip/CallView/CallViewHeader.tsx @@ -93,7 +93,7 @@ const CallTypeIcon: React.FC<{ type: CallType }> = ({ type }) => { return
; }; -export const CallViewHeader: React.FC = ({ +const CallViewHeader: React.FC = ({ type, pipMode = false, callRooms = [], @@ -130,3 +130,5 @@ export const CallViewHeader: React.FC = ({
); }; + +export default CallViewHeader; diff --git a/src/components/views/voip/PictureInPictureDragger.tsx b/src/components/views/voip/PictureInPictureDragger.tsx index e8617e09f2..2024946535 100644 --- a/src/components/views/voip/PictureInPictureDragger.tsx +++ b/src/components/views/voip/PictureInPictureDragger.tsx @@ -55,7 +55,7 @@ interface IState { * (PiP mode). It displays the call(s) which is *not* in the room the user is currently viewing. */ @replaceableComponent("views.voip.PictureInPictureDragger") -export class PictureInPictureDragger extends React.Component { +export default class PictureInPictureDragger extends React.Component { private callViewWrapper = createRef(); private initX = 0; private initY = 0;