1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Material-UI example: Pass through unrelated props to wrapped component (#2664)

This commit is contained in:
Claus Klingberg 2017-07-30 22:22:38 +02:00 committed by Tim Neutkens
parent b27526b6ff
commit 4f0592a584

View file

@ -46,7 +46,7 @@ function withRoot (BaseComponent) {
<JssProvider registry={context.sheetsRegistry} jss={context.jss}>
<MuiThemeProvider theme={context.theme} sheetsManager={context.sheetsManager}>
<AppWrapper>
<BaseComponent />
<BaseComponent {...this.props} />
</AppWrapper>
</MuiThemeProvider>
</JssProvider>