diff --git a/gatsby-node.js b/gatsby-node.js index 50af0c6..5109529 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -17,11 +17,11 @@ exports.onCreateWebpackConfig = ({ stage, actions, getConfig }) => { } } -exports.createPages = async ({ actions }) => { - console.log('Creating pages'); +exports.createPages = async ({ actions }, themeOptions) => { const basePath = "/" actions.createPage({ path: basePath, component: require.resolve("./src/pages/index.js"), + context: { menuComponents: themeOptions.menuComponents } }) } diff --git a/package.json b/package.json index 7b2727b..606dece 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@alcipir/gatsby-ipfs-web-wallet", + "name": "gatsby-ipfs-web-wallet-testing", "description": "A gatsbyjs app with adminlte2 integration and basic Bitcoin Cash wallet functionality.", "version": "1.0.1", "main": "index.js", diff --git a/src/pages/.index.js.swp b/src/pages/.index.js.swp deleted file mode 100644 index f2311cf..0000000 Binary files a/src/pages/.index.js.swp and /dev/null differ diff --git a/src/pages/index.js b/src/pages/index.js index 51de0c7..85cd059 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -29,12 +29,6 @@ let ConnectedDashboard = AdminLTE : null -class AdminLTEPage extends React.Component { - state = {} - - render() { - return <>{ConnectedDashboard && } - } -} +const AdminLTEPage = ({ pageContext }) => <>{ConnectedDashboard && } export default AdminLTEPage