1
0
Fork 0
react-playground/node_modules/mui/source/styles/MuiThemeProvider.js
Techognito fc0f69dacb Added Statistics calculation
Statistics now show calculated values
2025-09-04 17:30:00 +02:00

27 lines
542 B
JavaScript

import {Component} from 'react';
import PropTypes from 'prop-types';
import getMuiTheme from './getMuiTheme';
class MuiThemeProvider extends Component {
static propTypes = {
children: PropTypes.element,
muiTheme: PropTypes.object,
};
static childContextTypes = {
muiTheme: PropTypes.object.isRequired,
};
getChildContext() {
return {
muiTheme: this.props.muiTheme || getMuiTheme(),
};
}
render() {
return this.props.children;
}
}
export default MuiThemeProvider;