mirror of
https://github.com/apache/superset.git
synced 2026-06-02 06:09:21 +00:00
chore(frontend): comprehensive TypeScript quality improvements (#37625)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import {
|
||||
Button,
|
||||
Col,
|
||||
@@ -70,24 +69,6 @@ interface TimeSeriesColumnControlState {
|
||||
popoverVisible: boolean;
|
||||
}
|
||||
|
||||
const propTypes = {
|
||||
label: PropTypes.string,
|
||||
tooltip: PropTypes.string,
|
||||
colType: PropTypes.string,
|
||||
width: PropTypes.string,
|
||||
height: PropTypes.string,
|
||||
timeLag: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
||||
timeRatio: PropTypes.string,
|
||||
comparisonType: PropTypes.string,
|
||||
showYAxis: PropTypes.bool,
|
||||
yAxisBounds: PropTypes.array,
|
||||
bounds: PropTypes.array,
|
||||
d3format: PropTypes.string,
|
||||
dateFormat: PropTypes.string,
|
||||
sparkType: PropTypes.string,
|
||||
onChange: PropTypes.func,
|
||||
};
|
||||
|
||||
const defaultProps = {
|
||||
label: t('Time series columns'),
|
||||
tooltip: '',
|
||||
@@ -151,8 +132,6 @@ export default class TimeSeriesColumnControl extends Component<
|
||||
TimeSeriesColumnControlProps,
|
||||
TimeSeriesColumnControlState
|
||||
> {
|
||||
static propTypes = propTypes;
|
||||
|
||||
static defaultProps = defaultProps;
|
||||
|
||||
constructor(props: TimeSeriesColumnControlProps) {
|
||||
|
||||
Reference in New Issue
Block a user