-
Notifications
You must be signed in to change notification settings - Fork 20
Fix for example plugin #23
Fix for example plugin #23
Conversation
…oken due to refactoring. Things changed: a) The navigation bar is now a React component b) The default route permissions are no longer maintained in Shop collection, but a dedicated Group collection This closes the error reported here: https://forums.reactioncommerce.com/t/reaction-example-plugin-not-working/623
Changes: 1) Replace footer and header templates with React components that are sourced dynamically from registry's layout definitions. 2) Static page 'AboutUs' is now a React component 3) Fix for static page /about which pulled in wrong layout because of non-matching workflow value in register.js Note: This change depends on register.js changes in core to work propertly. Also it requires to be the core's footer React component to be existent and registered as `Footer`.
Blaze template instead of new React component CartSubTotal.
@zenweasel I actually would retain the blue 'Debug bar' as it gives the developer a hint, what's going on under the hood. |
I'm getting a following error from this branch: Footer.js in the trace is the footer.js from this plugin. I just did reaction init (with latest version of npm tool), and cloned this branch into imports/plugins/custom. Am I doing something wrongly? |
@piizei This PR depends on another PR (reactioncommerce/reaction#3257) in core, which isn't approved yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested. Verified fixed.
The example plugin had different bugs which were fixed:
Refactored: