Use react-toolbox buttons. Added Cancel button for the entry editor.
This commit is contained in:
@ -1,8 +1,16 @@
|
||||
import history from '../routing/history';
|
||||
|
||||
export const SWITCH_VISUAL_MODE = 'SWITCH_VISUAL_MODE';
|
||||
|
||||
export function switchVisualMode(useVisualMode) {
|
||||
return {
|
||||
type: SWITCH_VISUAL_MODE,
|
||||
payload: useVisualMode
|
||||
payload: useVisualMode,
|
||||
};
|
||||
}
|
||||
|
||||
export function cancelEdit() {
|
||||
return () => {
|
||||
history.goBack();
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user