From 26e5631f5214096d64b40587718fd344b65e28cd Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 10 May 2017 14:13:32 -0300 Subject: [PATCH] Changing path for hocs --- client/coral-framework/hocs/index.js | 7 +++++++ client/coral-framework/index.js | 2 ++ plugins/coral-plugin-love/client/LoveButton.js | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 client/coral-framework/hocs/index.js diff --git a/client/coral-framework/hocs/index.js b/client/coral-framework/hocs/index.js new file mode 100644 index 000000000..6b05553d9 --- /dev/null +++ b/client/coral-framework/hocs/index.js @@ -0,0 +1,7 @@ +import withFragments from './withFragments'; +import withReaction from './withReaction'; + +export default { + withFragments, + withReaction +} \ No newline at end of file diff --git a/client/coral-framework/index.js b/client/coral-framework/index.js index b85b69bcd..46ee704f4 100644 --- a/client/coral-framework/index.js +++ b/client/coral-framework/index.js @@ -1,6 +1,7 @@ import pym from './services/PymConnection'; import I18n from './modules/i18n/i18n'; import actions from './actions'; +import hocs from './hocs'; // TODO (bc): Deprecate old actions. Spreading actions is now needed. @@ -8,5 +9,6 @@ export default { pym, I18n, actions, + ...hocs, ...actions }; diff --git a/plugins/coral-plugin-love/client/LoveButton.js b/plugins/coral-plugin-love/client/LoveButton.js index 383873f63..b85d7280b 100644 --- a/plugins/coral-plugin-love/client/LoveButton.js +++ b/plugins/coral-plugin-love/client/LoveButton.js @@ -3,7 +3,7 @@ import {Icon} from 'coral-ui'; import styles from './styles.css'; import {I18n} from 'coral-framework'; import translations from './translations.json'; -import withReaction from 'coral-framework/hocs/withReaction'; +import {withReaction} from 'coral-framework'; const lang = new I18n(translations); class LoveButton extends React.Component {