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 { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||
import { EventSubscription } from 'fbemitter';
|
||||
import { PictureInPictureDragger } from './PictureInPictureDragger';
|
||||
import PictureInPictureDragger from './PictureInPictureDragger';
|
||||
|
||||
const SHOW_CALL_IN_STATES = [
|
||||
CallState.Connected,
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -94,7 +94,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 = [],
|
||||
|
@ -131,3 +131,5 @@ export const CallViewHeader: React.FC<CallViewHeaderProps> = ({
|
|||
</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.
|
||||
*/
|
||||
@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;
|
||||
|
|
Loading…
Reference in a new issue