mirror of
https://github.com/apache/superset.git
synced 2026-04-26 19:44:58 +00:00
ESLint: Re-enable rule default-props-match-prop-types (#10868)
* Re-enable rule default-props-match-prop-types * Restore default props and remove isRequired * Remove unused props
This commit is contained in:
committed by
GitHub
parent
a9eab33d64
commit
9f01a7fdf8
@@ -37,10 +37,6 @@ const propTypes = {
|
||||
templateParams: PropTypes.string,
|
||||
};
|
||||
|
||||
const defaultProps = {
|
||||
vizRequest: {},
|
||||
};
|
||||
|
||||
class ExploreCtasResultsButton extends React.PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
@@ -113,7 +109,6 @@ class ExploreCtasResultsButton extends React.PureComponent {
|
||||
}
|
||||
}
|
||||
ExploreCtasResultsButton.propTypes = propTypes;
|
||||
ExploreCtasResultsButton.defaultProps = defaultProps;
|
||||
|
||||
function mapStateToProps({ sqlLab, common }) {
|
||||
return {
|
||||
|
||||
@@ -25,7 +25,7 @@ import TableSelector from '../../components/TableSelector';
|
||||
|
||||
const propTypes = {
|
||||
queryEditor: PropTypes.object.isRequired,
|
||||
height: PropTypes.number.isRequired,
|
||||
height: PropTypes.number,
|
||||
tables: PropTypes.array,
|
||||
actions: PropTypes.object,
|
||||
database: PropTypes.object,
|
||||
|
||||
@@ -33,8 +33,6 @@ const propTypes = {
|
||||
};
|
||||
|
||||
const defaultProps = {
|
||||
label: null,
|
||||
description: null,
|
||||
onChange: () => {},
|
||||
code: '{}',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user