Completely updated React, fixed #11, (hopefully)
This commit is contained in:
42
goTorrentWebUI/node_modules/material-ui/es/ExpansionPanel/ExpansionPanelDetails.js
generated
vendored
Normal file
42
goTorrentWebUI/node_modules/material-ui/es/ExpansionPanel/ExpansionPanelDetails.js
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import _extends from 'babel-runtime/helpers/extends';
|
||||
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: {
|
||||
display: 'flex',
|
||||
flexGrow: 1,
|
||||
padding: `${theme.spacing.unit}px ${theme.spacing.unit * 3}px ${theme.spacing.unit * 3}px`
|
||||
}
|
||||
});
|
||||
|
||||
function ExpansionPanelDetails(props) {
|
||||
const { classes, children, className } = props,
|
||||
other = _objectWithoutProperties(props, ['classes', 'children', 'className']);
|
||||
|
||||
return React.createElement(
|
||||
'div',
|
||||
_extends({ className: classNames(classes.root, className) }, other),
|
||||
children
|
||||
);
|
||||
}
|
||||
|
||||
ExpansionPanelDetails.propTypes = process.env.NODE_ENV !== "production" ? {
|
||||
/**
|
||||
* The content of the expansion panel details.
|
||||
*/
|
||||
children: PropTypes.node.isRequired,
|
||||
/**
|
||||
* Useful to extend the style applied to components.
|
||||
*/
|
||||
classes: PropTypes.object.isRequired,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string
|
||||
} : {};
|
||||
|
||||
export default withStyles(styles, { name: 'MuiExpansionPanelDetails' })(ExpansionPanelDetails);
|
Reference in New Issue
Block a user