From 647a693999f4eba7c40da9bef51c143a294a61a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Pi=C3=B1era=20Buend=C3=ADa?= Date: Thu, 17 Oct 2019 19:53:04 +0200 Subject: [PATCH] feat(gatsby-theme-docz): pass the entry property down to Wrapper * feat: pass the entry property down to the wrapper * Don't destructure the attribute --- core/gatsby-theme-docz/src/base/Layout.js | 2 +- core/gatsby-theme-docz/src/wrapper.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/gatsby-theme-docz/src/base/Layout.js b/core/gatsby-theme-docz/src/base/Layout.js index 7de82e329..5ded5cf27 100644 --- a/core/gatsby-theme-docz/src/base/Layout.js +++ b/core/gatsby-theme-docz/src/base/Layout.js @@ -17,7 +17,7 @@ const Route = ({ children, entry, ...defaultProps }) => { if (!entry) return return ( - + {children} diff --git a/core/gatsby-theme-docz/src/wrapper.js b/core/gatsby-theme-docz/src/wrapper.js index 104231849..a276b1f03 100644 --- a/core/gatsby-theme-docz/src/wrapper.js +++ b/core/gatsby-theme-docz/src/wrapper.js @@ -1,4 +1,6 @@ import * as React from 'react' -const Wrapper = ({ children }) => {children} +const Wrapper = ({ children }) => ( + {children} +) export default Wrapper