Pass plugins via context instead of using Redux store

This commit is contained in:
Cássio Zen
2016-08-18 09:09:54 -03:00
parent d22a4da057
commit 986e36c137
4 changed files with 58 additions and 48 deletions

View File

@ -1,5 +1,4 @@
export const SWITCH_VISUAL_MODE = 'SWITCH_VISUAL_MODE';
export const REGISTER_COMPONENT = 'REGISTER_COMPONENT';
export function switchVisualMode(useVisualMode) {
return {
@ -7,10 +6,3 @@ export function switchVisualMode(useVisualMode) {
payload: useVisualMode
};
}
export function registerComponent(options) {
return {
type: REGISTER_COMPONENT,
payload: options
};
}