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 interval: number | undefined;
constructor(props: ShowLogProps, context: any) {
super(props, context);
constructor(props: ShowLogProps) {
super(props);
this.state = {
logState: QueryState.INIT,
tail: true,

View File

@ -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,

View File

@ -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 = {};
}

View File

@ -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) {

View File

@ -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}` });

View File

@ -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}` });

View File

@ -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: [],

View File

@ -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,
};

View File

@ -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: [],