diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-09-24 23:24:47 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-09-24 23:24:47 +0200 |
commit | fab88bb47e71ad47c928198ddbf7a4d0527e81bb (patch) | |
tree | d218193c775e125e0043d21ee216eed531f01b1b /packages/gitbook-plugin-theme-default/src/components/Page.js | |
parent | fa7cf3a65f7a19b2870e6d92c2e110e2356189ae (diff) | |
download | gitbook-fab88bb47e71ad47c928198ddbf7a4d0527e81bb.zip gitbook-fab88bb47e71ad47c928198ddbf7a4d0527e81bb.tar.gz gitbook-fab88bb47e71ad47c928198ddbf7a4d0527e81bb.tar.bz2 |
Add flex box components
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/components/Page.js')
-rw-r--r-- | packages/gitbook-plugin-theme-default/src/components/Page.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Page.js b/packages/gitbook-plugin-theme-default/src/components/Page.js new file mode 100644 index 0000000..dda8eba --- /dev/null +++ b/packages/gitbook-plugin-theme-default/src/components/Page.js @@ -0,0 +1,20 @@ +const React = require('react'); +const GitBook = require('gitbook-core'); + +const Page = React.createClass({ + propTypes: { + page: GitBook.Shapes.Page + }, + + render() { + const { page } = this.props; + + return ( + <div className="Page page-wrapper"> + <GitBook.HTMLContent html={page.content} /> + </div> + ); + } +}); + +module.exports = Page; |