linty things
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Typography, Statistic, Card, Progress} from "antd";
|
||||
|
||||
const { Text } = Typography;
|
||||
|
||||
interface StatisticItemProps {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable no-array-constructor */
|
||||
import { BulbOutlined, LaptopOutlined, SaveOutlined } from "@ant-design/icons";
|
||||
import { Row } from "antd";
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable no-console */
|
||||
/*
|
||||
Will display an overview with the following datasources:
|
||||
1. Current broadcaster.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable react/prop-types */
|
||||
import React, { useContext } from "react";
|
||||
import KeyValueTable from "./components/key-value-table";
|
||||
import { ServerStatusContext } from '../utils/server-status-context';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable react/prop-types */
|
||||
import React, { useContext } from 'react';
|
||||
import { Table, Typography, Input } from 'antd';
|
||||
import { isEmptyObject } from '../utils/format';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable react/prop-types */
|
||||
import React, { useContext } from 'react';
|
||||
import { Table, Typography } from 'antd';
|
||||
import { ServerStatusContext } from '../utils/server-status-context';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable react/prop-types */
|
||||
import React, { useState, useEffect, useContext } from 'react';
|
||||
import { Table, Row } from "antd";
|
||||
import { formatDistanceToNow } from "date-fns";
|
||||
|
||||
Reference in New Issue
Block a user