2016-10-11 18:24:55 +02:00
|
|
|
import history from '../routing/history';
|
|
|
|
|
2016-08-11 18:21:32 -03:00
|
|
|
export const SWITCH_VISUAL_MODE = 'SWITCH_VISUAL_MODE';
|
|
|
|
|
|
|
|
export function switchVisualMode(useVisualMode) {
|
|
|
|
return {
|
|
|
|
type: SWITCH_VISUAL_MODE,
|
2016-10-11 18:24:55 +02:00
|
|
|
payload: useVisualMode,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function cancelEdit() {
|
|
|
|
return () => {
|
|
|
|
history.goBack();
|
2016-08-11 18:21:32 -03:00
|
|
|
};
|
|
|
|
}
|