Replace strings action with correspoding type

This commit is contained in:
Swapnil Raj 2020-07-18 16:47:07 +05:30
parent 2c8b5b49ed
commit 1c913b85e2

View file

@ -25,7 +25,10 @@ import PropTypes from 'prop-types';
import { showGroupInviteDialog } from '../../../GroupAddressPicker';
import AccessibleButton from '../elements/AccessibleButton';
import {RIGHT_PANEL_PHASES} from "../../../stores/RightPanelStorePhases";
import TintableSvg from '../elements/TintableSvg';
import {RightPanelPhases} from "../../../stores/RightPanelStorePhases";
import AutoHideScrollbar from "../../structures/AutoHideScrollbar";
import {Action} from "../../../dispatcher/actions";
const INITIAL_LOAD_NUM_MEMBERS = 30;
@ -164,8 +167,8 @@ export default createReactClass({
onInviteToGroupButtonClick() {
showGroupInviteDialog(this.props.groupId).then(() => {
dis.dispatch({
action: 'set_right_panel_phase',
phase: RIGHT_PANEL_PHASES.GroupMemberList,
action: Action.SetRightPanelPhase,
phase: RightPanelPhases.GroupMemberList,
groupId: this.props.groupId,
});
});