Completely updated React, fixed #11, (hopefully)

This commit is contained in:
2018-03-04 19:11:49 -05:00
parent 6e0afd6e2a
commit 34e5f5139a
13674 changed files with 333464 additions and 473223 deletions

View File

@@ -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);