Enforce some naming conventions (#4813)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-03-01 13:06:53 -05:00
1 parent dc6615f98f
commit 0b32775d40
197 files changed
+630 -634

No files matched your search

@@ -20,7 +20,7 @@ import { ThemeStore } from "../../theme.store";
import { kubeSelectedUrlParam, toggleDetails } from "../kube-detail-params";
import { apiManager } from "../../../common/k8s-api/api-manager";
interface Props {
export interface ClusterIssuesProps {
className?: string;
}
@@ -39,14 +39,14 @@ enum sortBy {
}
@observer
export class ClusterIssues extends React.Component<Props> {
export class ClusterIssues extends React.Component<ClusterIssuesProps> {
private sortCallbacks = {
[sortBy.type]: (warning: IWarning) => warning.kind,
[sortBy.object]: (warning: IWarning) => warning.getName(),
[sortBy.age]: (warning: IWarning) => warning.timeDiffFromNow,
};
constructor(props: Props) {
constructor(props: ClusterIssuesProps) {
super(props);
makeObservable(this);
}
@@ -7,11 +7,11 @@ import React from "react";
import { Icon } from "../icon";
import { cssNames } from "../../utils";
interface Props {
export interface ClusterNoMetricsProps {
className: string;
}
export function ClusterNoMetrics({ className }: Props) {
export function ClusterNoMetrics({ className }: ClusterNoMetricsProps) {
return (
<div className={cssNames("ClusterNoMetrics flex column box grow justify-center align-center", className)}>
<Icon material="info"/>