Replaced string actions with their corresponding types
This commit is contained in:
parent
344185a375
commit
1d3635e1c8
12 changed files with 91 additions and 84 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue