diff --git a/en/02_Developer_Guides/00_Model/10_Versioning.md b/en/02_Developer_Guides/00_Model/10_Versioning.md index 64ed1c6b7..28f99a3a9 100644 --- a/en/02_Developer_Guides/00_Model/10_Versioning.md +++ b/en/02_Developer_Guides/00_Model/10_Versioning.md @@ -988,7 +988,7 @@ module.exports = [ console.log('Hello world'); ``` -At this stage, running `yarn build` should correctly build `app/client/dist/js/bundle.js`. +At this stage, running `yarn build` correctly build `app/client/dist/js/bundle.js`. [notice] Don't forget to [configure your project's "exposed" folders](/developer_guides/templates/requirements/#configuring-your-project-exposed-folders) and run `composer vendor-expose` on the command line so that the browser has access to your new dist js file. @@ -1207,7 +1207,7 @@ mutation revertToMyVersionedObject($id:ID!, $toVersion:Int!) { const config = { props: ({ mutate, ownProps: { actions } }) => { - const revertToVersion = (id, toVersion) => mutate({ + const revertToMyVersionedObject = (id, toVersion) => mutate({ variables: { id, toVersion, @@ -1217,7 +1217,7 @@ const config = { return { actions: { ...actions, - revertToVersion, + revertToMyVersionedObject, }, }; }, diff --git a/en/02_Developer_Guides/15_Customising_the_Admin_Interface/07_ReactJS_Redux_and_GraphQL.md b/en/02_Developer_Guides/15_Customising_the_Admin_Interface/07_ReactJS_Redux_and_GraphQL.md index 9ae34d421..085faa8d4 100644 --- a/en/02_Developer_Guides/15_Customising_the_Admin_Interface/07_ReactJS_Redux_and_GraphQL.md +++ b/en/02_Developer_Guides/15_Customising_the_Admin_Interface/07_ReactJS_Redux_and_GraphQL.md @@ -920,16 +920,15 @@ Finally, let's make a really simple container app which holds a header and our n ```js import React from 'react'; +import { inject } from 'lib/Injector'; import Notes from './components/Notes'; -const App = () => ( +const App = ({ ListComponent }) => (