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/Sidebar.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/Sidebar.js')
-rw-r--r-- | packages/gitbook-plugin-theme-default/src/components/Sidebar.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Sidebar.js b/packages/gitbook-plugin-theme-default/src/components/Sidebar.js new file mode 100644 index 0000000..ff4fcbf --- /dev/null +++ b/packages/gitbook-plugin-theme-default/src/components/Sidebar.js @@ -0,0 +1,22 @@ +const React = require('react'); +const GitBook = require('gitbook-core'); + +const Summary = require('./Summary'); + +const Sidebar = React.createClass({ + propTypes: { + summary: GitBook.Shapes.Summary + }, + + render() { + const { summary } = this.props; + + return ( + <div className="Sidebar book-summary"> + <Summary summary={summary} /> + </div> + ); + } +}); + +module.exports = Sidebar; |