You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
@FredericHeem yes you must pass context to the material-ui components.
In theory you can add MuiThemeProvider to the carte-blanche's main component App
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
...
<div className={(!this.state.drawerVisible) ? styles.preview : styles.previewOpen}>
<MenuButton
onClick={this.toggleMenu}
drawerOpen={this.state.drawerVisible}
/>
{(this.props.children) ? (
<MuiThemeProvider>
this.props.children
</MuiThemeProvider>
) : (
<div className={styles.home}>
<h2>Home</h2>
<p>Get started by selecting a component on the left 🙌</p>
</div>
)}
</div>
@nikgraf no, I didn't fork it because I don't have much time, but I use material-ui for a long time and I know well this error.
I think passing own container is a good option.
# for freeto subscribe to this conversation on GitHub.
Already have an account?
#.
It seems that material-ui react components cannot be displayed with carte-blanche:
The text was updated successfully, but these errors were encountered: