@economist/component-blog-post
Advanced tools
Comparing version
16
index.js
@@ -29,2 +29,13 @@ 'use strict'; | ||
var groups = []; | ||
if (this.props.rubric) { | ||
content.push(_react2['default'].createElement( | ||
'div', | ||
{ | ||
className: 'blog-post__rubric', | ||
itemProp: 'description', | ||
key: 'blog-post__rubric' | ||
}, | ||
this.props.rubric | ||
)); | ||
} | ||
if (this.props.section) { | ||
@@ -35,3 +46,3 @@ content.push(_react2['default'].createElement( | ||
className: 'blog-post__section', | ||
itemProp: 'section', | ||
itemProp: 'articleSection', | ||
key: 'blog-post__section' | ||
@@ -128,5 +139,6 @@ }, | ||
title: _react2['default'].PropTypes.string.isRequired, | ||
rubric: _react2['default'].PropTypes.string, | ||
dateTime: _react2['default'].PropTypes.instanceOf(Date), | ||
dateFormat: _react2['default'].PropTypes.func, | ||
text: _react2['default'].PropTypes.string, | ||
text: _react2['default'].PropTypes.string.isRequired, | ||
afterText: _react2['default'].PropTypes.node, | ||
@@ -133,0 +145,0 @@ itemType: _react2['default'].PropTypes.string, |
{ | ||
"name": "@economist/component-blog-post", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Blog post", | ||
@@ -5,0 +5,0 @@ "author": "The Economist (http://economist.com)", |
Sorry, the diff of this file is not supported yet
36353
1.49%428
4.14%