mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-05-12 19:36:41 +07:00
setMode --> changeMode
This commit is contained in:
parent
5e55434772
commit
d0f419c18b
9 changed files with 80 additions and 42 deletions
|
@ -2,12 +2,12 @@ import React from 'react';
|
|||
|
||||
import { MODES } from '~/constants/modes';
|
||||
import { Icon } from '~/components/panels/Icon';
|
||||
import { editorSetMode, editorStopEditing } from '~/redux/editor/actions';
|
||||
import { editorChangeMode, editorStopEditing } from '~/redux/editor/actions';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
const mapStateToProps = () => ({});
|
||||
const mapDispatchToProps = {
|
||||
editorSetMode,
|
||||
editorChangeMode,
|
||||
editorStopEditing,
|
||||
};
|
||||
|
||||
|
@ -19,7 +19,7 @@ class CancelDialogUnconnected extends React.Component<Props, void> {
|
|||
};
|
||||
|
||||
proceed = () => {
|
||||
this.props.editorSetMode(MODES.NONE);
|
||||
this.props.editorChangeMode(MODES.NONE);
|
||||
};
|
||||
|
||||
render() {
|
||||
|
|
|
@ -20,7 +20,7 @@ const mapStateToProps = state => ({
|
|||
|
||||
const mapDispatchToProps = {
|
||||
editorCancelSave: EDITOR_ACTIONS.editorCancelSave,
|
||||
editorSetMode: EDITOR_ACTIONS.editorSetMode,
|
||||
editorChangeMode: EDITOR_ACTIONS.editorChangeMode,
|
||||
editorSendSaveRequest: EDITOR_ACTIONS.editorSendSaveRequest,
|
||||
};
|
||||
|
||||
|
@ -80,7 +80,7 @@ class SaveDialogUnconnected extends React.Component<Props, State> {
|
|||
|
||||
forceSaveRequest = e => this.editorSendSaveRequest(e, true);
|
||||
|
||||
cancelSaving = () => this.props.editorSetMode(MODES.NONE);
|
||||
cancelSaving = () => this.props.editorChangeMode(MODES.NONE);
|
||||
|
||||
onCopy = e => {
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue