Completely updated React, fixed #11, (hopefully)
This commit is contained in:
42
goTorrentWebUI/node_modules/material-ui/Dialog/DialogContent.js.flow
generated
vendored
42
goTorrentWebUI/node_modules/material-ui/Dialog/DialogContent.js.flow
generated
vendored
@@ -1,11 +1,9 @@
|
||||
// @flow
|
||||
|
||||
import React from 'react';
|
||||
import type { Node } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import withStyles from '../styles/withStyles';
|
||||
|
||||
export const styles = (theme: Object) => {
|
||||
export const styles = theme => {
|
||||
const spacing = theme.spacing.unit * 3;
|
||||
return {
|
||||
root: {
|
||||
@@ -19,26 +17,7 @@ export const styles = (theme: Object) => {
|
||||
};
|
||||
};
|
||||
|
||||
type ProvidedProps = {
|
||||
classes: Object,
|
||||
};
|
||||
|
||||
export type Props = {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: Node,
|
||||
/**
|
||||
* Useful to extend the style applied to components.
|
||||
*/
|
||||
classes?: Object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className?: string,
|
||||
};
|
||||
|
||||
function DialogContent(props: ProvidedProps & Props) {
|
||||
function DialogContent(props) {
|
||||
const { classes, children, className, ...other } = props;
|
||||
|
||||
return (
|
||||
@@ -48,4 +27,19 @@ function DialogContent(props: ProvidedProps & Props) {
|
||||
);
|
||||
}
|
||||
|
||||
DialogContent.propTypes = {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: PropTypes.node,
|
||||
/**
|
||||
* Useful to extend the style applied to components.
|
||||
*/
|
||||
classes: PropTypes.object.isRequired,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
};
|
||||
|
||||
export default withStyles(styles, { name: 'MuiDialogContent' })(DialogContent);
|
||||
|
Reference in New Issue
Block a user