redux: fixed bugs

This commit is contained in:
muerwre 2018-11-26 17:40:49 +07:00
parent 0f3217f5df
commit 5d14a753f7
6 changed files with 20 additions and 31 deletions

View file

@ -11,10 +11,10 @@ type Props = {
export class CancelDialog extends React.Component<Props, void> {
cancel = () => {
editor.cancelEditing();
// this.props.stopEditing();
this.props.setEditing(false);
this.props.setMode(MODES.NONE);
this.props.stopEditing();
// editor.cancelEditing();
// this.props.setEditing(false);
// this.props.setMode(MODES.NONE);
};
proceed = () => {