Remove context params from class component ctors (#14366)

This commit is contained in:
John Gozde 2023-06-05 12:15:28 -06:00 committed by GitHub
parent 49c056af17
commit c14e54cf93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 18 additions and 18 deletions

View File

@ -54,8 +54,8 @@ export class ShowLog extends React.PureComponent<ShowLogProps, ShowLogState> {
private readonly log = React.createRef<HTMLTextAreaElement>(); private readonly log = React.createRef<HTMLTextAreaElement>();
private interval: number | undefined; private interval: number | undefined;
constructor(props: ShowLogProps, context: any) { constructor(props: ShowLogProps) {
super(props, context); super(props);
this.state = { this.state = {
logState: QueryState.INIT, logState: QueryState.INIT,
tail: true, tail: true,

View File

@ -83,8 +83,8 @@ export class ConsoleApplication extends React.PureComponent<
private onlyUnavailable?: boolean; private onlyUnavailable?: boolean;
private queryWithContext?: QueryWithContext; private queryWithContext?: QueryWithContext;
constructor(props: ConsoleApplicationProps, context: any) { constructor(props: ConsoleApplicationProps) {
super(props, context); super(props);
this.state = { this.state = {
capabilities: Capabilities.FULL, capabilities: Capabilities.FULL,
capabilitiesLoading: true, capabilitiesLoading: true,

View File

@ -45,8 +45,8 @@ export interface DoctorDialogState {
export class DoctorDialog extends React.PureComponent<DoctorDialogProps, DoctorDialogState> { export class DoctorDialog extends React.PureComponent<DoctorDialogProps, DoctorDialogState> {
private mounted = false; private mounted = false;
constructor(props: DoctorDialogProps, context: any) { constructor(props: DoctorDialogProps) {
super(props, context); super(props);
this.state = {}; this.state = {};
} }

View File

@ -347,8 +347,8 @@ ORDER BY 1`;
DatasourcesAndDefaultRules DatasourcesAndDefaultRules
>; >;
constructor(props: DatasourcesViewProps, context: any) { constructor(props: DatasourcesViewProps) {
super(props, context); super(props);
const datasourceFilter: Filter[] = []; const datasourceFilter: Filter[] = [];
if (props.initDatasource) { if (props.initDatasource) {

View File

@ -228,8 +228,8 @@ ORDER BY
) DESC, ) DESC,
"created_time" DESC`; "created_time" DESC`;
constructor(props: IngestionViewProps, context: any) { constructor(props: IngestionViewProps) {
super(props, context); super(props);
const taskFilter: Filter[] = []; const taskFilter: Filter[] = [];
if (props.taskId) taskFilter.push({ id: 'task_id', value: `=${props.taskId}` }); if (props.taskId) taskFilter.push({ id: 'task_id', value: `=${props.taskId}` });

View File

@ -253,8 +253,8 @@ END AS "time_span"`,
private lastTableState: TableState | undefined; private lastTableState: TableState | undefined;
constructor(props: SegmentsViewProps, context: any) { constructor(props: SegmentsViewProps) {
super(props, context); super(props);
const segmentFilter: Filter[] = []; const segmentFilter: Filter[] = [];
if (props.datasource) segmentFilter.push({ id: 'datasource', value: `=${props.datasource}` }); if (props.datasource) segmentFilter.push({ id: 'datasource', value: `=${props.datasource}` });

View File

@ -235,8 +235,8 @@ ORDER BY
}); });
} }
constructor(props: ServicesViewProps, context: any) { constructor(props: ServicesViewProps) {
super(props, context); super(props);
this.state = { this.state = {
servicesState: QueryState.INIT, servicesState: QueryState.INIT,
serviceFilter: [], serviceFilter: [],

View File

@ -518,8 +518,8 @@ export class ColumnTree extends React.PureComponent<ColumnTreeProps, ColumnTreeS
return null; return null;
} }
constructor(props: ColumnTreeProps, context: any) { constructor(props: ColumnTreeProps) {
super(props, context); super(props);
this.state = { this.state = {
selectedTreeIndex: -1, selectedTreeIndex: -1,
}; };

View File

@ -230,8 +230,8 @@ export class FlexibleQueryInput extends React.PureComponent<
return null; return null;
} }
constructor(props: FlexibleQueryInputProps, context: any) { constructor(props: FlexibleQueryInputProps) {
super(props, context); super(props);
this.state = { this.state = {
editorHeight: 200, editorHeight: 200,
quotedCompletions: [], quotedCompletions: [],