mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-21 16:52:06 -07:00
Changing page context
This commit is contained in:
+2
-2
@@ -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 }
|
||||
})
|
||||
}
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Binary file not shown.
+1
-7
@@ -29,12 +29,6 @@ let ConnectedDashboard = AdminLTE
|
||||
: null
|
||||
|
||||
|
||||
class AdminLTEPage extends React.Component {
|
||||
state = {}
|
||||
|
||||
render() {
|
||||
return <>{ConnectedDashboard && <ConnectedDashboard />}</>
|
||||
}
|
||||
}
|
||||
const AdminLTEPage = ({ pageContext }) => <>{ConnectedDashboard && <ConnectedDashboard menuComponents={pageContext.menuComponents} />}</>
|
||||
|
||||
export default AdminLTEPage
|
||||
|
||||
Reference in New Issue
Block a user