mirror of
https://github.com/apache/superset.git
synced 2026-04-10 03:45:22 +00:00
Fixing PropTypes warning messages (#2670)
* Fixing PropTypes warning message React recently started warning on the upcoming deprecation of React.PropTypes, the new approach is to use the `prop-types` npm package instead. * Fixing the tests
This commit is contained in:
committed by
GitHub
parent
29780821e8
commit
e055e6d2c2
@@ -1,15 +1,16 @@
|
||||
/* global notify */
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormControl, FormGroup, Overlay, Popover, Row, Col } from 'react-bootstrap';
|
||||
import Button from '../../components/Button';
|
||||
|
||||
const propTypes = {
|
||||
defaultLabel: React.PropTypes.string,
|
||||
sql: React.PropTypes.string,
|
||||
schema: React.PropTypes.string,
|
||||
dbId: React.PropTypes.number,
|
||||
animation: React.PropTypes.bool,
|
||||
onSave: React.PropTypes.func,
|
||||
defaultLabel: PropTypes.string,
|
||||
sql: PropTypes.string,
|
||||
schema: PropTypes.string,
|
||||
dbId: PropTypes.number,
|
||||
animation: PropTypes.bool,
|
||||
onSave: PropTypes.func,
|
||||
};
|
||||
const defaultProps = {
|
||||
defaultLabel: 'Undefined',
|
||||
|
||||
Reference in New Issue
Block a user