Replace strings action with correspoding type
This commit is contained in:
parent
2c8b5b49ed
commit
1c913b85e2
1 changed files with 5 additions and 2 deletions
|
@ -25,7 +25,10 @@ import PropTypes from 'prop-types';
|
||||||
import { showGroupInviteDialog } from '../../../GroupAddressPicker';
|
import { showGroupInviteDialog } from '../../../GroupAddressPicker';
|
||||||
import AccessibleButton from '../elements/AccessibleButton';
|
import AccessibleButton from '../elements/AccessibleButton';
|
||||||
import {RIGHT_PANEL_PHASES} from "../../../stores/RightPanelStorePhases";
|
import {RIGHT_PANEL_PHASES} from "../../../stores/RightPanelStorePhases";
|
||||||
|
import TintableSvg from '../elements/TintableSvg';
|
||||||
|
import {RightPanelPhases} from "../../../stores/RightPanelStorePhases";
|
||||||
import AutoHideScrollbar from "../../structures/AutoHideScrollbar";
|
import AutoHideScrollbar from "../../structures/AutoHideScrollbar";
|
||||||
|
import {Action} from "../../../dispatcher/actions";
|
||||||
|
|
||||||
const INITIAL_LOAD_NUM_MEMBERS = 30;
|
const INITIAL_LOAD_NUM_MEMBERS = 30;
|
||||||
|
|
||||||
|
@ -164,8 +167,8 @@ export default createReactClass({
|
||||||
onInviteToGroupButtonClick() {
|
onInviteToGroupButtonClick() {
|
||||||
showGroupInviteDialog(this.props.groupId).then(() => {
|
showGroupInviteDialog(this.props.groupId).then(() => {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'set_right_panel_phase',
|
action: Action.SetRightPanelPhase,
|
||||||
phase: RIGHT_PANEL_PHASES.GroupMemberList,
|
phase: RightPanelPhases.GroupMemberList,
|
||||||
groupId: this.props.groupId,
|
groupId: this.props.groupId,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue