Skip to content
This repository has been archived by the owner on Mar 27, 2018. It is now read-only.

Commit

Permalink
fix(mapper): pass mapper from Paragraphs component to Paragraph compo…
Browse files Browse the repository at this point in the history
…nent
  • Loading branch information
Ian Wensink committed Sep 14, 2017
1 parent 4e6a96d commit 691bf2a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Paragraphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const Paragraphs = ({ mapper, paragraphs, page, Wrapper }) =>
uuid={uuid.target_uuid}
page={page}
index={index}
mapper={mapper}
/>
);
if(Wrapper) {
Expand All @@ -28,11 +29,7 @@ Paragraphs.propTypes = {
PropTypes.func,
]).isRequired,
paragraphs: PropTypes.arrayOf(PropTypes.shape()),
page: PropTypes.shape({
uuid: PropTypes.shape({
target_uuid: PropTypes.string,
}).isRequired,
}),
page: PropTypes.shape(),
Wrapper: PropTypes.oneOfType([
PropTypes.bool,
PropTypes.node,
Expand Down

0 comments on commit 691bf2a

Please sign in to comment.