d2-ui
Version:
26 lines (19 loc) • 421 B
JSX
import {Component, PropTypes} from 'react';
class MuiThemeProvider extends Component {
static propTypes = {
children: PropTypes.element,
muiTheme: PropTypes.object,
};
static childContextTypes = {
muiTheme: PropTypes.object,
};
getChildContext() {
return {
muiTheme: this.props.muiTheme,
};
}
render() {
return this.props.children;
}
}
export default MuiThemeProvider;