linty things

This commit is contained in:
gingervitis
2020-11-28 19:45:52 -08:00
parent ced7a7ca82
commit 3eeb6eaece
12 changed files with 28 additions and 14 deletions

View File

@@ -2,12 +2,6 @@ import { LineChart } from 'react-chartkick'
import styles from '../../styles/styles.module.scss';
import 'chart.js';
const defaultProps = {
active: false,
payload: Object,
unit: '',
};
interface TimedValue {
time: Date;
value: number;

View File

@@ -2,7 +2,7 @@ import { Table, Typography } from "antd";
const { Title } = Typography;
export default function KeyValueTable({ title, data }) {
export default function KeyValueTable({ title, data }: KeyValueTableProps) {
const columns = [
{
title: "Name",
@@ -23,3 +23,8 @@ export default function KeyValueTable({ title, data }) {
</>
);
}
interface KeyValueTableProps {
title: string,
data: any,
};

View File

@@ -1,4 +1,5 @@
import { Typography, Statistic, Card, Progress} from "antd";
const { Text } = Typography;
interface StatisticItemProps {