Added Statistics calculation
Statistics now show calculated values
This commit is contained in:
parent
fe87374e47
commit
fc0f69dacb
2147 changed files with 141321 additions and 39 deletions
28
node_modules/mui/source/styles/muiThemeable.js
generated
vendored
Normal file
28
node_modules/mui/source/styles/muiThemeable.js
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import getMuiTheme from './getMuiTheme';
|
||||
|
||||
let DEFAULT_THEME;
|
||||
|
||||
function getDefaultTheme() {
|
||||
if (!DEFAULT_THEME) {
|
||||
DEFAULT_THEME = getMuiTheme();
|
||||
}
|
||||
return DEFAULT_THEME;
|
||||
}
|
||||
|
||||
export default function muiThemeable() {
|
||||
return (Component) => {
|
||||
const MuiComponent = (props, context) => {
|
||||
const {muiTheme = getDefaultTheme()} = context;
|
||||
|
||||
return <Component muiTheme={muiTheme} {...props} />;
|
||||
};
|
||||
|
||||
MuiComponent.contextTypes = {
|
||||
muiTheme: PropTypes.object.isRequired,
|
||||
};
|
||||
|
||||
return MuiComponent;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue