Rename boundActionCreators to actions
This commit is contained in:
parent
e53f847eef
commit
8122ad3f7a
1 changed files with 4 additions and 4 deletions
|
|
@ -3,8 +3,8 @@ const Promise = require('bluebird')
|
|||
const path = require('path')
|
||||
const { createFilePath } = require('gatsby-source-filesystem')
|
||||
|
||||
exports.createPages = ({ graphql, boundActionCreators }) => {
|
||||
const { createPage } = boundActionCreators
|
||||
exports.createPages = ({ graphql, actions }) => {
|
||||
const { createPage } = actions
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
const blogPost = path.resolve('./src/templates/blog-post.js')
|
||||
|
|
@ -54,8 +54,8 @@ exports.createPages = ({ graphql, boundActionCreators }) => {
|
|||
})
|
||||
}
|
||||
|
||||
exports.onCreateNode = ({ node, boundActionCreators, getNode }) => {
|
||||
const { createNodeField } = boundActionCreators
|
||||
exports.onCreateNode = ({ node, actions, getNode }) => {
|
||||
const { createNodeField } = actions
|
||||
|
||||
if (node.internal.type === `MarkdownRemark`) {
|
||||
const value = createFilePath({ node, getNode })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue