Completely updated React, fixed #11, (hopefully)
This commit is contained in:
34
goTorrentWebUI/node_modules/material-ui/es/Snackbar/SnackbarContent.js
generated
vendored
34
goTorrentWebUI/node_modules/material-ui/es/Snackbar/SnackbarContent.js
generated
vendored
@@ -1,19 +1,18 @@
|
||||
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 _extends from 'babel-runtime/helpers/extends';
|
||||
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
||||
// @inheritedComponent Paper
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import withStyles from '../styles/withStyles';
|
||||
import Paper from '../Paper';
|
||||
import Typography from '../Typography';
|
||||
import { emphasize } from '../styles/colorManipulator';
|
||||
|
||||
export const styles = theme => {
|
||||
const type = theme.palette.type === 'light' ? 'dark' : 'light';
|
||||
const backgroundColor = theme.palette.shades[type].background.default;
|
||||
const emphasis = theme.palette.type === 'light' ? 0.8 : 0.98;
|
||||
const backgroundColor = emphasize(theme.palette.background.default, emphasis);
|
||||
|
||||
return {
|
||||
root: {
|
||||
@@ -29,7 +28,7 @@ export const styles = theme => {
|
||||
maxWidth: 568,
|
||||
borderRadius: 2
|
||||
},
|
||||
[theme.breakpoints.down('md')]: {
|
||||
[theme.breakpoints.down('sm')]: {
|
||||
flexGrow: 1
|
||||
}
|
||||
},
|
||||
@@ -75,4 +74,23 @@ function SnackbarContent(props) {
|
||||
);
|
||||
}
|
||||
|
||||
SnackbarContent.propTypes = process.env.NODE_ENV !== "production" ? {
|
||||
/**
|
||||
* The action to display.
|
||||
*/
|
||||
action: PropTypes.node,
|
||||
/**
|
||||
* Useful to extend the style applied to components.
|
||||
*/
|
||||
classes: PropTypes.object.isRequired,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* The message to display.
|
||||
*/
|
||||
message: PropTypes.node
|
||||
} : {};
|
||||
|
||||
export default withStyles(styles, { name: 'MuiSnackbarContent' })(SnackbarContent);
|
Reference in New Issue
Block a user