Export components by default

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-08-07 08:54:40 +02:00
parent 2f904cccce
commit 5c90736213
No known key found for this signature in database
GPG Key ID: CC823428E9B582FB
4 changed files with 6 additions and 4 deletions

View File

@ -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,

View File

@ -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";

View File

@ -93,7 +93,7 @@ const CallTypeIcon: React.FC<{ type: CallType }> = ({ type }) => {
return <div className={classes} />;
};
export const CallViewHeader: React.FC<CallViewHeaderProps> = ({
const CallViewHeader: React.FC<CallViewHeaderProps> = ({
type,
pipMode = false,
callRooms = [],
@ -130,3 +130,5 @@ export const CallViewHeader: React.FC<CallViewHeaderProps> = ({
</div>
);
};
export default CallViewHeader;

View File

@ -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<IProps, IState> {
export default class PictureInPictureDragger extends React.Component<IProps, IState> {
private callViewWrapper = createRef<HTMLDivElement>();
private initX = 0;
private initY = 0;