Skip to content

Commit

Permalink
Add section IDs to section renderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
karatechops committed May 15, 2018
1 parent e3daba0 commit 5a39751
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SectionLayoutRenderer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default class SectionLayoutRenderer extends Component {
if (blockMap) {
mergedBlockMap = {
...BlockTypeMap,
...blockMap
}
...blockMap,
};
}

return blocks.map((block, index) => { // eslint-disable-line arrow-body-style
Expand All @@ -33,10 +33,10 @@ export default class SectionLayoutRenderer extends Component {

render() {
const { section, blockMap, ...rest } = this.props;

return (
<ContentLayoutEngine
{...rest}
id={section.id}
layout={section.layout}
blocks={section.contentBlocks}
>
Expand All @@ -62,5 +62,5 @@ SectionLayoutRenderer.propTypes = {
}),
).isRequired,
}),
blockMap: PropTypes.object
blockMap: PropTypes.object, // eslint-disable-line react/forbid-prop-types
};

0 comments on commit 5a39751

Please sign in to comment.