Completely updated React, fixed #11, (hopefully)
This commit is contained in:
46
goTorrentWebUI/node_modules/material-ui/es/Table/TableFooter.js
generated
vendored
46
goTorrentWebUI/node_modules/material-ui/es/Table/TableFooter.js
generated
vendored
@@ -1,22 +1,8 @@
|
||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
||||
|
||||
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
||||
import React from 'react';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import withStyles from '../styles/withStyles';
|
||||
|
||||
export const styles = theme => ({
|
||||
root: {
|
||||
fontSize: theme.typography.pxToRem(12),
|
||||
color: theme.palette.text.secondary
|
||||
}
|
||||
});
|
||||
|
||||
class TableFooter extends React.Component {
|
||||
|
||||
getChildContext() {
|
||||
// eslint-disable-line class-methods-use-this
|
||||
return {
|
||||
@@ -28,27 +14,31 @@ class TableFooter extends React.Component {
|
||||
|
||||
render() {
|
||||
const _props = this.props,
|
||||
{
|
||||
classes,
|
||||
className: classNameProp,
|
||||
children,
|
||||
component: ComponentProp
|
||||
} = _props,
|
||||
other = _objectWithoutProperties(_props, ['classes', 'className', 'children', 'component']);
|
||||
{ component: Component } = _props,
|
||||
other = _objectWithoutProperties(_props, ['component']);
|
||||
|
||||
return React.createElement(
|
||||
ComponentProp,
|
||||
_extends({ className: classNames(classes.root, classNameProp) }, other),
|
||||
children
|
||||
);
|
||||
return React.createElement(Component, other);
|
||||
}
|
||||
}
|
||||
|
||||
TableFooter.propTypes = process.env.NODE_ENV !== "production" ? {
|
||||
/**
|
||||
* The content of the component, normally `TableRow`.
|
||||
*/
|
||||
children: PropTypes.node,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a DOM element or a component.
|
||||
*/
|
||||
component: PropTypes.oneOfType([PropTypes.string, PropTypes.func])
|
||||
} : {};
|
||||
|
||||
TableFooter.defaultProps = {
|
||||
component: 'tfoot'
|
||||
};
|
||||
|
||||
TableFooter.childContextTypes = {
|
||||
table: PropTypes.object
|
||||
};
|
||||
|
||||
export default withStyles(styles, { name: 'MuiTableFooter' })(TableFooter);
|
||||
export default TableFooter;
|
Reference in New Issue
Block a user