diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-10-13 16:17:00 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-10-13 16:17:00 +0200 |
commit | 05646996c0ef2f1a474bd547153b8ef87f89ac6e (patch) | |
tree | b76ed08d1ae1410334bb0f0c7131b1ab2d9abdfe /packages/gitbook-plugin-theme-default/src/components/Theme.js | |
parent | c439cf851380da27ebaa0edce5fff99f8fb93d65 (diff) | |
download | gitbook-05646996c0ef2f1a474bd547153b8ef87f89ac6e.zip gitbook-05646996c0ef2f1a474bd547153b8ef87f89ac6e.tar.gz gitbook-05646996c0ef2f1a474bd547153b8ef87f89ac6e.tar.bz2 |
Rename "navigation" to "history" and add loading bar
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/components/Theme.js')
-rw-r--r-- | packages/gitbook-plugin-theme-default/src/components/Theme.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Theme.js b/packages/gitbook-plugin-theme-default/src/components/Theme.js index bf00502..741b3cc 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Theme.js +++ b/packages/gitbook-plugin-theme-default/src/components/Theme.js @@ -3,6 +3,7 @@ const { React } = GitBook; const Sidebar = require('./Sidebar'); const Body = require('./Body'); +const LoadingBar = require('./LoadingBar'); const Theme = React.createClass({ propTypes: { @@ -10,16 +11,18 @@ const Theme = React.createClass({ page: GitBook.Shapes.Page, summary: GitBook.Shapes.Summary, readme: GitBook.Shapes.Readme, + history: GitBook.Shapes.History, sidebar: React.PropTypes.object, // Other props children: React.PropTypes.node }, render() { - const { page, summary, children, sidebar, readme } = this.props; + const { page, summary, children, sidebar, readme, history } = this.props; return ( <GitBook.FlexLayout column className="GitBook book"> + <LoadingBar show={history.loading} /> <GitBook.Head title={page.title} titleTemplate="%s - GitBook" /> @@ -43,6 +46,6 @@ const Theme = React.createClass({ } }); -module.exports = GitBook.connect(Theme, ({page, summary, sidebar, readme}) => { - return { page, summary, sidebar, readme }; +module.exports = GitBook.connect(Theme, ({page, summary, sidebar, readme, history}) => { + return { page, summary, sidebar, readme, history }; }); |