mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
parent
97cef335e8
commit
9aa128a6e8
4 changed files with 2 additions and 5 deletions
|
@ -24,7 +24,6 @@ import RightPanelStore from "../../../stores/RightPanelStore";
|
||||||
import {RightPanelPhases} from "../../../stores/RightPanelStorePhases";
|
import {RightPanelPhases} from "../../../stores/RightPanelStorePhases";
|
||||||
import {Action} from '../../../dispatcher/actions';
|
import {Action} from '../../../dispatcher/actions';
|
||||||
import {SetRightPanelPhasePayload, SetRightPanelPhaseRefireParams} from '../../../dispatcher/payloads/SetRightPanelPhasePayload';
|
import {SetRightPanelPhasePayload, SetRightPanelPhaseRefireParams} from '../../../dispatcher/payloads/SetRightPanelPhasePayload';
|
||||||
import {EventSubscription} from "fbemitter";
|
|
||||||
|
|
||||||
export enum HeaderKind {
|
export enum HeaderKind {
|
||||||
Room = "room",
|
Room = "room",
|
||||||
|
@ -39,7 +38,7 @@ interface IState {
|
||||||
interface IProps {}
|
interface IProps {}
|
||||||
|
|
||||||
export default class HeaderButtons extends React.Component<IProps, IState> {
|
export default class HeaderButtons extends React.Component<IProps, IState> {
|
||||||
private storeToken: EventSubscription;
|
private storeToken: ReturnType<RightPanelStore["addListener"]>;
|
||||||
private dispatcherRef: string;
|
private dispatcherRef: string;
|
||||||
|
|
||||||
constructor(props: IProps, kind: HeaderKind) {
|
constructor(props: IProps, kind: HeaderKind) {
|
||||||
|
|
|
@ -18,12 +18,10 @@ import { RightPanelPhases } from "../../stores/RightPanelStorePhases";
|
||||||
import { SetRightPanelPhaseRefireParams } from "./SetRightPanelPhasePayload";
|
import { SetRightPanelPhaseRefireParams } from "./SetRightPanelPhasePayload";
|
||||||
import { ActionPayload } from "../payloads";
|
import { ActionPayload } from "../payloads";
|
||||||
import { Action } from "../actions";
|
import { Action } from "../actions";
|
||||||
import { VerificationRequest } from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";
|
|
||||||
|
|
||||||
interface AfterRightPanelPhaseChangeAction extends ActionPayload {
|
interface AfterRightPanelPhaseChangeAction extends ActionPayload {
|
||||||
action: Action.AfterRightPanelPhaseChange;
|
action: Action.AfterRightPanelPhaseChange;
|
||||||
phase: RightPanelPhases;
|
phase: RightPanelPhases;
|
||||||
verificationRequestPromise?: Promise<VerificationRequest>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AfterRightPanelPhaseChangePayload
|
export type AfterRightPanelPhaseChangePayload
|
||||||
|
|
|
@ -24,7 +24,7 @@ export interface SetRightPanelPhasePayload extends ActionPayload {
|
||||||
action: Action.SetRightPanelPhase;
|
action: Action.SetRightPanelPhase;
|
||||||
|
|
||||||
phase: RightPanelPhases;
|
phase: RightPanelPhases;
|
||||||
refireParams?: SetRightPanelPhaseRefireParams;
|
refireParams: SetRightPanelPhaseRefireParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SetRightPanelPhaseRefireParams {
|
export interface SetRightPanelPhaseRefireParams {
|
||||||
|
|
Loading…
Reference in a new issue