Completely updated React, fixed #11, (hopefully)
This commit is contained in:
42
goTorrentWebUI/node_modules/material-ui/Dialog/DialogContentText.js.flow
generated
vendored
42
goTorrentWebUI/node_modules/material-ui/Dialog/DialogContentText.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 => ({
|
||||
root: {
|
||||
...theme.typography.subheading,
|
||||
color: theme.palette.text.secondary,
|
||||
@@ -13,26 +11,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 DialogContentText(props: ProvidedProps & Props) {
|
||||
function DialogContentText(props) {
|
||||
const { children, classes, className, ...other } = props;
|
||||
|
||||
return (
|
||||
@@ -42,4 +21,19 @@ function DialogContentText(props: ProvidedProps & Props) {
|
||||
);
|
||||
}
|
||||
|
||||
DialogContentText.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: 'MuiDialogContentText' })(DialogContentText);
|
||||
|
Reference in New Issue
Block a user