diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-09-25 17:44:08 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-09-25 17:44:08 +0200 |
commit | e46cd78f803891dfc8c304ea8ec4bc813ad16b5b (patch) | |
tree | 7c3711581cb151fc58b186ea45a8f7f691d190e7 /packages/gitbook-plugin-theme-default/src | |
parent | fab88bb47e71ad47c928198ddbf7a4d0527e81bb (diff) | |
download | gitbook-e46cd78f803891dfc8c304ea8ec4bc813ad16b5b.zip gitbook-e46cd78f803891dfc8c304ea8ec4bc813ad16b5b.tar.gz gitbook-e46cd78f803891dfc8c304ea8ec4bc813ad16b5b.tar.bz2 |
Fix core reducer destroying other reducers
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src')
-rw-r--r-- | packages/gitbook-plugin-theme-default/src/components/Summary.js | 4 | ||||
-rw-r--r-- | packages/gitbook-plugin-theme-default/src/index.js | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Summary.js b/packages/gitbook-plugin-theme-default/src/components/Summary.js index e95b4b4..8c5c4a1 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Summary.js +++ b/packages/gitbook-plugin-theme-default/src/components/Summary.js @@ -46,10 +46,12 @@ const SummaryPart = React.createClass({ const { part } = this.props; const { title, articles } = part; + const titleEL = title ? <h2>{title}</h2> : null; + return ( <GitBook.InjectedComponent matching={{ role: 'summary:part' }} props={this.props}> <div className="SummaryPart"> - {title} + {titleEL} <SummaryArticles articles={articles} /> </div> </GitBook.InjectedComponent> diff --git a/packages/gitbook-plugin-theme-default/src/index.js b/packages/gitbook-plugin-theme-default/src/index.js index 4eed252..64d4433 100644 --- a/packages/gitbook-plugin-theme-default/src/index.js +++ b/packages/gitbook-plugin-theme-default/src/index.js @@ -24,7 +24,7 @@ let ThemeBody = React.createClass({ <GitBook.Head title={page.title} titleTemplate="%s - GitBook" /> - <GitBook.ImportCSS href="gitbook/gitbook-plugin-theme-default/theme.css" /> + <GitBook.ImportCSS href="gitbook/theme.css" /> <GitBook.FlexBox> <GitBook.FlexLayout> @@ -45,7 +45,7 @@ let ThemeBody = React.createClass({ }); ThemeBody = GitBook.connect(ThemeBody, ({page, summary, sidebar}) => { - console.log('connect', sidebar.toJS()) + console.log('connect!'); return { page, summary, sidebar }; }); |