importer renamed, and properties changed

This commit is contained in:
Belen Curcio
2017-03-30 14:52:17 -03:00
parent 79cbdaf92b
commit 1bb3ed2399
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import isEqual from 'lodash/isEqual';
import I18n from 'coral-framework/modules/i18n/i18n';
import translations from 'coral-framework/translations';
const lang = new I18n(translations);
import {graphImporter} from 'coral-framework/helpers/importer';
import {graphImporter} from 'coral-framework/helpers/plugins';
import {TabBar, Tab, TabContent, Spinner} from 'coral-ui';
@@ -128,7 +128,7 @@ class Embed extends Component {
const pluginProps = {
...this.props,
...boundActionCreators
actions: boundActionCreators
};
return (
+1 -1
View File
@@ -1,7 +1,7 @@
import * as authActions from './auth';
import * as assetActions from './asset';
import * as notificationActions from './notification';
import {actionsImporter} from '../helpers/importer';
import {actionsImporter} from '../helpers/plugins';
export default {
authActions,
+3 -3
View File
@@ -1,12 +1,12 @@
import React, {Component} from 'react';
import {importer as injectPlugins} from 'coral-framework/helpers/importer';
import {injectPlugins} from 'coral-framework/helpers/plugins';
class Slot extends Component {
render() {
const {pluginProps: actions, ...props} = this.props;
const {pluginProps, ...props} = this.props;
return (
<div>
{injectPlugins({...props, actions})}
{injectPlugins({...props, ...pluginProps})}
</div>
);
}
@@ -1,6 +1,6 @@
import {client as clientPlugins} from 'pluginsConfig';
function importer ({fill, ...props}) {
function injectPlugins ({fill, ...props}) {
let context,
importedFiles;
@@ -142,7 +142,7 @@ function graphImporter () {
}
export default {
importer,
injectPlugins,
actionsImporter: actionsImporter(),
reducersImporter: reducersImporter(),
graphImporter: graphImporter()
+1 -1
View File
@@ -1,7 +1,7 @@
import auth from './auth';
import user from './user';
import asset from './asset';
import {reducersImporter} from '../helpers/importer';
import {reducersImporter} from '../helpers/plugins';
export default {
auth,