Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
feat(gatsby-theme-docz): pass the entry property down to Wrapper
Browse files Browse the repository at this point in the history
* feat: pass the entry property down to the wrapper

* Don't destructure the attribute
  • Loading branch information
Pedro Piñera Buendía authored and rakannimer committed Oct 17, 2019
1 parent d8832bf commit 647a693
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/gatsby-theme-docz/src/base/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Route = ({ children, entry, ...defaultProps }) => {
if (!entry) return <NotFound />
return (
<MDXProvider components={components}>
<Wrapper>
<Wrapper doc={entry}>
<Layout {...props}>{children}</Layout>
</Wrapper>
</MDXProvider>
Expand Down
4 changes: 3 additions & 1 deletion core/gatsby-theme-docz/src/wrapper.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import * as React from 'react'

const Wrapper = ({ children }) => <React.Fragment>{children}</React.Fragment>
const Wrapper = ({ children }) => (
<React.Fragment>{children}</React.Fragment>
)
export default Wrapper

0 comments on commit 647a693

Please sign in to comment.