mirror of https://github.com/apache/druid.git
Remove context params from class component ctors (#14366)
This commit is contained in:
parent
49c056af17
commit
c14e54cf93
|
@ -54,8 +54,8 @@ export class ShowLog extends React.PureComponent<ShowLogProps, ShowLogState> {
|
|||
private readonly log = React.createRef<HTMLTextAreaElement>();
|
||||
private interval: number | undefined;
|
||||
|
||||
constructor(props: ShowLogProps, context: any) {
|
||||
super(props, context);
|
||||
constructor(props: ShowLogProps) {
|
||||
super(props);
|
||||
this.state = {
|
||||
logState: QueryState.INIT,
|
||||
tail: true,
|
||||
|
|
|
@ -83,8 +83,8 @@ export class ConsoleApplication extends React.PureComponent<
|
|||
private onlyUnavailable?: boolean;
|
||||
private queryWithContext?: QueryWithContext;
|
||||
|
||||
constructor(props: ConsoleApplicationProps, context: any) {
|
||||
super(props, context);
|
||||
constructor(props: ConsoleApplicationProps) {
|
||||
super(props);
|
||||
this.state = {
|
||||
capabilities: Capabilities.FULL,
|
||||
capabilitiesLoading: true,
|
||||
|
|
|
@ -45,8 +45,8 @@ export interface DoctorDialogState {
|
|||
export class DoctorDialog extends React.PureComponent<DoctorDialogProps, DoctorDialogState> {
|
||||
private mounted = false;
|
||||
|
||||
constructor(props: DoctorDialogProps, context: any) {
|
||||
super(props, context);
|
||||
constructor(props: DoctorDialogProps) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
}
|
||||
|
||||
|
|
|
@ -347,8 +347,8 @@ ORDER BY 1`;
|
|||
DatasourcesAndDefaultRules
|
||||
>;
|
||||
|
||||
constructor(props: DatasourcesViewProps, context: any) {
|
||||
super(props, context);
|
||||
constructor(props: DatasourcesViewProps) {
|
||||
super(props);
|
||||
|
||||
const datasourceFilter: Filter[] = [];
|
||||
if (props.initDatasource) {
|
||||
|
|
|
@ -228,8 +228,8 @@ ORDER BY
|
|||
) DESC,
|
||||
"created_time" DESC`;
|
||||
|
||||
constructor(props: IngestionViewProps, context: any) {
|
||||
super(props, context);
|
||||
constructor(props: IngestionViewProps) {
|
||||
super(props);
|
||||
|
||||
const taskFilter: Filter[] = [];
|
||||
if (props.taskId) taskFilter.push({ id: 'task_id', value: `=${props.taskId}` });
|
||||
|
|
|
@ -253,8 +253,8 @@ END AS "time_span"`,
|
|||
|
||||
private lastTableState: TableState | undefined;
|
||||
|
||||
constructor(props: SegmentsViewProps, context: any) {
|
||||
super(props, context);
|
||||
constructor(props: SegmentsViewProps) {
|
||||
super(props);
|
||||
|
||||
const segmentFilter: Filter[] = [];
|
||||
if (props.datasource) segmentFilter.push({ id: 'datasource', value: `=${props.datasource}` });
|
||||
|
|
|
@ -235,8 +235,8 @@ ORDER BY
|
|||
});
|
||||
}
|
||||
|
||||
constructor(props: ServicesViewProps, context: any) {
|
||||
super(props, context);
|
||||
constructor(props: ServicesViewProps) {
|
||||
super(props);
|
||||
this.state = {
|
||||
servicesState: QueryState.INIT,
|
||||
serviceFilter: [],
|
||||
|
|
|
@ -518,8 +518,8 @@ export class ColumnTree extends React.PureComponent<ColumnTreeProps, ColumnTreeS
|
|||
return null;
|
||||
}
|
||||
|
||||
constructor(props: ColumnTreeProps, context: any) {
|
||||
super(props, context);
|
||||
constructor(props: ColumnTreeProps) {
|
||||
super(props);
|
||||
this.state = {
|
||||
selectedTreeIndex: -1,
|
||||
};
|
||||
|
|
|
@ -230,8 +230,8 @@ export class FlexibleQueryInput extends React.PureComponent<
|
|||
return null;
|
||||
}
|
||||
|
||||
constructor(props: FlexibleQueryInputProps, context: any) {
|
||||
super(props, context);
|
||||
constructor(props: FlexibleQueryInputProps) {
|
||||
super(props);
|
||||
this.state = {
|
||||
editorHeight: 200,
|
||||
quotedCompletions: [],
|
||||
|
|
Loading…
Reference in New Issue