Skip to content

Commit

Permalink
Simplify gatsby-browser render
Browse files Browse the repository at this point in the history
  • Loading branch information
KristiyanTs committed Feb 26, 2021
1 parent 63bf96b commit 4c68192
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gatsby-browser.js
Expand Up @@ -21,6 +21,6 @@ require("prismjs/components/prism-solidity")

// Prevents <Layout/> from unmounting on page transitions
// https://www.gatsbyjs.com/docs/layout-components/#how-to-prevent-layout-components-from-unmounting
export const wrapPageElement = ({ element, props }) => {
return <Layout {...props}>{element}</Layout>
}
export const wrapPageElement = ({ element, props }) => (
<Layout {...props}>{element}</Layout>
)

0 comments on commit 4c68192

Please sign in to comment.