Merge pull request #6576 from SimonBrandner/fix/export-default
Export components by default
This commit is contained in:
commit
7598ce6ca3
4 changed files with 6 additions and 4 deletions
|
@ -28,7 +28,7 @@ import { CallEvent, CallState, MatrixCall } from 'matrix-js-sdk/src/webrtc/call'
|
||||||
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||||
import { EventSubscription } from 'fbemitter';
|
import { EventSubscription } from 'fbemitter';
|
||||||
import { PictureInPictureDragger } from './PictureInPictureDragger';
|
import PictureInPictureDragger from './PictureInPictureDragger';
|
||||||
|
|
||||||
const SHOW_CALL_IN_STATES = [
|
const SHOW_CALL_IN_STATES = [
|
||||||
CallState.Connected,
|
CallState.Connected,
|
||||||
|
|
|
@ -42,7 +42,7 @@ import DesktopCapturerSourcePicker from "../elements/DesktopCapturerSourcePicker
|
||||||
import Modal from '../../../Modal';
|
import Modal from '../../../Modal';
|
||||||
import { SDPStreamMetadataPurpose } from 'matrix-js-sdk/src/webrtc/callEventTypes';
|
import { SDPStreamMetadataPurpose } from 'matrix-js-sdk/src/webrtc/callEventTypes';
|
||||||
import CallViewSidebar from './CallViewSidebar';
|
import CallViewSidebar from './CallViewSidebar';
|
||||||
import { CallViewHeader } from './CallView/CallViewHeader';
|
import CallViewHeader from './CallView/CallViewHeader';
|
||||||
import AccessibleTooltipButton from "../elements/AccessibleTooltipButton";
|
import AccessibleTooltipButton from "../elements/AccessibleTooltipButton";
|
||||||
import { Alignment } from "../elements/Tooltip";
|
import { Alignment } from "../elements/Tooltip";
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ const CallTypeIcon: React.FC<{ type: CallType }> = ({ type }) => {
|
||||||
return <div className={classes} />;
|
return <div className={classes} />;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const CallViewHeader: React.FC<CallViewHeaderProps> = ({
|
const CallViewHeader: React.FC<CallViewHeaderProps> = ({
|
||||||
type,
|
type,
|
||||||
pipMode = false,
|
pipMode = false,
|
||||||
callRooms = [],
|
callRooms = [],
|
||||||
|
@ -131,3 +131,5 @@ export const CallViewHeader: React.FC<CallViewHeaderProps> = ({
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default CallViewHeader;
|
||||||
|
|
|
@ -55,7 +55,7 @@ interface IState {
|
||||||
* (PiP mode). It displays the call(s) which is *not* in the room the user is currently viewing.
|
* (PiP mode). It displays the call(s) which is *not* in the room the user is currently viewing.
|
||||||
*/
|
*/
|
||||||
@replaceableComponent("views.voip.PictureInPictureDragger")
|
@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 callViewWrapper = createRef<HTMLDivElement>();
|
||||||
private initX = 0;
|
private initX = 0;
|
||||||
private initY = 0;
|
private initY = 0;
|
||||||
|
|
Loading…
Reference in a new issue