-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement @atsnek/jaen and fix several bugs and issues
- Loading branch information
Showing
116 changed files
with
4,228 additions
and
7,557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,5 @@ | ||
/** | ||
* Implement Gatsby's Browser APIs in this file. | ||
* | ||
* See: https://www.gatsbyjs.com/docs/browser-apis/ | ||
*/ | ||
export const wrapPageElement = ({element, props}) => { | ||
console.log('wrapPageElement', props) | ||
|
||
// You can delete this file if you're not using it | ||
|
||
import {GatsbyBrowser} from 'gatsby' | ||
|
||
import {Layout} from './src/Layout' | ||
import './src/styles/global.css' | ||
|
||
export const wrapPageElement: GatsbyBrowser['wrapPageElement'] = ({ | ||
element, | ||
props | ||
}) => { | ||
if (props.location.pathname.startsWith('/admin')) { | ||
return <>{element}</> | ||
} | ||
|
||
return <Layout {...props}>{element}</Layout> | ||
return element | ||
} | ||
|
||
// export const shouldUpdateScroll: GatsbyBrowser['shouldUpdateScroll'] = ({ | ||
// routerProps: {location} | ||
// }) => { | ||
// // check if restoreScroll is set on the location | ||
// if (location.state?.noScroll) { | ||
// // if yes, use the state to scroll to the respective position | ||
// return false | ||
// } | ||
|
||
// // use default scroll behavior | ||
// return true | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.