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

+3 -3
View File
@@ -15,18 +15,18 @@ import { ZebraStripes } from "./zebra-stripes.plugin";
import { ThemeStore } from "../../theme.store";
import { NoMetrics } from "../resource-metrics/no-metrics";
interface Props extends ChartProps {
export interface BarChartProps extends ChartProps {
name?: string;
timeLabelStep?: number; // Minute labels appearance step
}
const defaultProps: Partial<Props> = {
const defaultProps: Partial<BarChartProps> = {
timeLabelStep: 10,
plugins: [ZebraStripes],
};
@observer
export class BarChart extends React.Component<Props> {
export class BarChart extends React.Component<BarChartProps> {
static defaultProps = defaultProps as object;
render() {
+2 -2
View File
@@ -11,11 +11,11 @@ import { Chart, ChartProps } from "./chart";
import { cssNames } from "../../utils";
import { ThemeStore } from "../../theme.store";
interface Props extends ChartProps {
export interface PieChartProps extends ChartProps {
}
@observer
export class PieChart extends React.Component<Props> {
export class PieChart extends React.Component<PieChartProps> {
render() {
const { data, className, options, ...chartProps } = this.props;
const { contentColor } = ThemeStore.getInstance().activeTheme.colors;