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

Commit ab08dff

Browse files
author
Ian Wensink
committed
fix(page): spread page props into ContentType & add pageProps prop
1 parent 9eccdd6 commit ab08dff

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/DrupalPage/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ export default class DrupalPage extends Component {
2020
asyncMapper: PropTypes.bool,
2121
layoutProps: PropTypes.shape(),
2222
renderWhileLoadingData: PropTypes.bool,
23+
pageProps: PropTypes.shape(),
2324
};
2425

2526
static defaultProps = {
2627
layout: 'div',
2728
asyncMapper: false,
2829
layoutProps: {},
2930
renderWhileLoadingData: false,
31+
pageProps: undefined,
3032
};
3133

3234
static contextTypes = {
@@ -175,7 +177,11 @@ export default class DrupalPage extends Component {
175177
page={data}
176178
{...this.props.layoutProps}
177179
>
178-
<ContentType page={data} />
180+
<ContentType
181+
page={data}
182+
{...data}
183+
{...this.props.pageProps}
184+
/>
179185
</Layout>
180186
);
181187
}

0 commit comments

Comments
 (0)