You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Replaced string actions with their corresponding types
This commit is contained in:
@@ -23,6 +23,7 @@ import dis from '../../../dispatcher/dispatcher';
|
||||
import RightPanelStore from "../../../stores/RightPanelStore";
|
||||
import {RightPanelPhases} from "../../../stores/RightPanelStorePhases";
|
||||
import {Action} from '../../../dispatcher/actions';
|
||||
import {SetRightPanelPhasePayload} from '../../../dispatcher/payloads/SetRightPanelPhasePayload';
|
||||
|
||||
export enum HeaderKind {
|
||||
Room = "room",
|
||||
@@ -65,7 +66,7 @@ export default class HeaderButtons extends React.Component<IProps, IState> {
|
||||
}
|
||||
|
||||
setPhase(phase: RightPanelPhases, extras) {
|
||||
dis.dispatch({
|
||||
dis.dispatch<SetRightPanelPhasePayload>({
|
||||
action: Action.SetRightPanelPhase,
|
||||
phase: phase,
|
||||
refireParams: extras,
|
||||
|
||||
Reference in New Issue
Block a user