Skip to content

Commit

Permalink
Update Layout children Type (gatsbyjs#64)
Browse files Browse the repository at this point in the history
Having the error below with element type.
Failed prop type: Invalid prop `children` of type `array` supplied to `Layout`, expected a single ReactElement.
  • Loading branch information
jigz authored and KyleAMathews committed Jun 28, 2018
1 parent ce9b8b0 commit ae8523a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Layout = ({ children, data }) => (
)

Layout.propTypes = {
children: PropTypes.element.isRequired,
children: PropTypes.node.isRequired,
}

export default Layout

0 comments on commit ae8523a

Please sign in to comment.