Skip to content

Commit

Permalink
Add support for custom children in Page component
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Sep 9, 2017
1 parent b8267bc commit cc78b46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export default class Page extends Component {
}

const {
children,
className,
onGetTextError,
onGetTextSuccess,
Expand Down Expand Up @@ -212,6 +213,7 @@ export default class Page extends Component {
scale={this.scale}
/>
}
{children}
</div>
);
}
Expand All @@ -223,6 +225,7 @@ Page.defaultProps = {
};

Page.propTypes = {
children: PropTypes.node,
className: PropTypes.oneOfType([
PropTypes.string,
PropTypes.arrayOf(PropTypes.string),
Expand Down

0 comments on commit cc78b46

Please sign in to comment.