diff options
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src')
6 files changed, 14 insertions, 14 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Body.js b/packages/gitbook-plugin-theme-default/src/components/Body.js index 4f51f0f..2eba09a 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Body.js +++ b/packages/gitbook-plugin-theme-default/src/components/Body.js @@ -6,8 +6,8 @@ const Toolbar = require('./Toolbar'); const Body = React.createClass({ propTypes: { - page: GitBook.Shapes.Page, - readme: GitBook.Shapes.Readme + page: GitBook.PropTypes.Page, + readme: GitBook.PropTypes.Readme }, render() { diff --git a/packages/gitbook-plugin-theme-default/src/components/Page.js b/packages/gitbook-plugin-theme-default/src/components/Page.js index 8e4324c..cbce704 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Page.js +++ b/packages/gitbook-plugin-theme-default/src/components/Page.js @@ -3,7 +3,7 @@ const { React } = GitBook; const Page = React.createClass({ propTypes: { - page: GitBook.Shapes.Page + page: GitBook.PropTypes.Page }, render() { diff --git a/packages/gitbook-plugin-theme-default/src/components/Sidebar.js b/packages/gitbook-plugin-theme-default/src/components/Sidebar.js index 4a7fa53..ad1754e 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Sidebar.js +++ b/packages/gitbook-plugin-theme-default/src/components/Sidebar.js @@ -5,7 +5,7 @@ const Summary = require('./Summary'); const Sidebar = React.createClass({ propTypes: { - summary: GitBook.Shapes.Summary + summary: GitBook.PropTypes.Summary }, render() { diff --git a/packages/gitbook-plugin-theme-default/src/components/Summary.js b/packages/gitbook-plugin-theme-default/src/components/Summary.js index d0fbde6..ef6ab3f 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Summary.js +++ b/packages/gitbook-plugin-theme-default/src/components/Summary.js @@ -5,7 +5,7 @@ const { React } = GitBook; let SummaryArticle = React.createClass({ propTypes: { active: React.PropTypes.bool, - article: GitBook.Shapes.SummaryArticle + article: GitBook.PropTypes.SummaryArticle }, render() { @@ -33,7 +33,7 @@ SummaryArticle = GitBook.connect(SummaryArticle, ({page}, {article}) => { const SummaryArticles = React.createClass({ propTypes: { - articles: GitBook.Shapes.listOf(GitBook.Shapes.SummaryArticle) + articles: GitBook.PropTypes.listOf(GitBook.PropTypes.SummaryArticle) }, render() { @@ -51,7 +51,7 @@ const SummaryArticles = React.createClass({ const SummaryPart = React.createClass({ propTypes: { - part: GitBook.Shapes.SummaryPart + part: GitBook.PropTypes.SummaryPart }, render() { @@ -73,7 +73,7 @@ const SummaryPart = React.createClass({ const SummaryParts = React.createClass({ propTypes: { - parts: GitBook.Shapes.listOf(GitBook.Shapes.SummaryPart) + parts: GitBook.PropTypes.listOf(GitBook.PropTypes.SummaryPart) }, render() { @@ -91,7 +91,7 @@ const SummaryParts = React.createClass({ const Summary = React.createClass({ propTypes: { - summary: GitBook.Shapes.Summary + summary: GitBook.PropTypes.Summary }, render() { diff --git a/packages/gitbook-plugin-theme-default/src/components/Theme.js b/packages/gitbook-plugin-theme-default/src/components/Theme.js index 741b3cc..8f5dce6 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Theme.js +++ b/packages/gitbook-plugin-theme-default/src/components/Theme.js @@ -8,10 +8,10 @@ const LoadingBar = require('./LoadingBar'); const Theme = React.createClass({ propTypes: { // State - page: GitBook.Shapes.Page, - summary: GitBook.Shapes.Summary, - readme: GitBook.Shapes.Readme, - history: GitBook.Shapes.History, + page: GitBook.PropTypes.Page, + summary: GitBook.PropTypes.Summary, + readme: GitBook.PropTypes.Readme, + history: GitBook.PropTypes.History, sidebar: React.PropTypes.object, // Other props children: React.PropTypes.node diff --git a/packages/gitbook-plugin-theme-default/src/components/Toolbar.js b/packages/gitbook-plugin-theme-default/src/components/Toolbar.js index cb90549..298017d 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Toolbar.js +++ b/packages/gitbook-plugin-theme-default/src/components/Toolbar.js @@ -7,7 +7,7 @@ const Toolbar = React.createClass({ propTypes: { title: React.PropTypes.string.isRequired, dispatch: React.PropTypes.func, - readme: GitBook.Shapes.Readme + readme: GitBook.PropTypes.Readme }, onToggle() { |