summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/shapes/SummaryArticle.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-core/src/shapes/SummaryArticle.js')
-rw-r--r--packages/gitbook-core/src/shapes/SummaryArticle.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/gitbook-core/src/shapes/SummaryArticle.js b/packages/gitbook-core/src/shapes/SummaryArticle.js
index d13bb31..c5aa717 100644
--- a/packages/gitbook-core/src/shapes/SummaryArticle.js
+++ b/packages/gitbook-core/src/shapes/SummaryArticle.js
@@ -1,8 +1,9 @@
/* eslint-disable no-use-before-define */
-const React = require('react');
+const React = require('react');
+const { list } = require('react-immutable-proptypes');
+
const {
- arrayOf,
string,
number,
shape
@@ -14,7 +15,7 @@ const Article = shape({
path: string,
ref: string,
level: string,
- articles: arrayOf(Article)
+ articles: list
});
module.exports = Article;