diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-09-21 19:17:32 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-09-21 19:17:32 +0200 |
commit | 2257e42299f28f2a276bf2febd7f5d00e3931c08 (patch) | |
tree | ac97009c68611deccd2d7851ab1b52efb5967b20 /packages/gitbook-plugin-theme-default/src | |
parent | 0e0c1a473b610b0b2d96f2549b6666e3d8158e64 (diff) | |
download | gitbook-2257e42299f28f2a276bf2febd7f5d00e3931c08.zip gitbook-2257e42299f28f2a276bf2febd7f5d00e3931c08.tar.gz gitbook-2257e42299f28f2a276bf2febd7f5d00e3931c08.tar.bz2 |
Add js scripts to html
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src')
-rw-r--r-- | packages/gitbook-plugin-theme-default/src/index.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/index.js b/packages/gitbook-plugin-theme-default/src/index.js index 86b2135..6499d5a 100644 --- a/packages/gitbook-plugin-theme-default/src/index.js +++ b/packages/gitbook-plugin-theme-default/src/index.js @@ -6,11 +6,12 @@ const Page = require('./Page'); let ThemeBody = React.createClass({ propTypes: { - page: GitBook.Shapes.Page + page: GitBook.Shapes.Page, + children: React.PropTypes.node }, render() { - const { page } = this.props; + const { page, children } = this.props; return ( <div className="GitBook book"> @@ -21,6 +22,7 @@ let ThemeBody = React.createClass({ <Sidebar /> <Page page={page} /> + {children} </div> ); } |