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 }) => (

Notes

); - -export default App; ``` **my-module/client/src/index.js** @@ -1225,7 +1224,7 @@ SilverStripe\GraphQL\Schema\Schema: ```yml App\Model\Note: fields: - priority: true + Priority: true ``` ##### Graphql 3 {#applying-extensions-gql-v3} @@ -1487,8 +1486,8 @@ Lastly, let's just register all this with `Injector`. ```js //... -import AddForm from '../components/AddForm'; -import createNote from '../state/createNote'; +import AddForm from './components/AddForm'; +import createNote from './state/createNote'; const registerDependencies = () => { //... @@ -1576,7 +1575,7 @@ All we've done here is overridden the `props` setting in the `CreateNote` apollo Now we just need to register these transforms, and we're done! -**app/client/src/boot.js** +**app/client/src/index.js** ```js //...