Completely updated React, fixed #11, (hopefully)
This commit is contained in:
30
goTorrentWebUI/node_modules/material-ui/Card/Card.js.flow
generated
vendored
30
goTorrentWebUI/node_modules/material-ui/Card/Card.js.flow
generated
vendored
@@ -1,30 +1,26 @@
|
||||
// @flow
|
||||
// @inheritedComponent Paper
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import Paper from '../Paper';
|
||||
|
||||
type ProvidedProps = {
|
||||
raised: boolean,
|
||||
};
|
||||
|
||||
export type Props = {
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className?: string,
|
||||
/**
|
||||
* If `true`, the card will use raised styling.
|
||||
*/
|
||||
raised?: boolean,
|
||||
};
|
||||
|
||||
function Card(props: ProvidedProps & Props) {
|
||||
function Card(props) {
|
||||
const { raised, ...other } = props;
|
||||
|
||||
return <Paper elevation={raised ? 8 : 2} {...other} />;
|
||||
}
|
||||
|
||||
Card.propTypes = {
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* If `true`, the card will use raised styling.
|
||||
*/
|
||||
raised: PropTypes.bool,
|
||||
};
|
||||
|
||||
Card.defaultProps = {
|
||||
raised: false,
|
||||
};
|
||||
|
Reference in New Issue
Block a user