assorted cleanup

This commit is contained in:
gingervitis
2020-11-13 03:57:57 -08:00
parent 2211572ba1
commit 72d9ff4edb
6 changed files with 19 additions and 26 deletions

View File

@@ -1,9 +1,11 @@
import React from "react";
import { timeFormat } from "d3-time-format";
import { Table, Tag} from "antd";
import { Table, Tag, Typography } from "antd";
import Linkify from "react-linkify";
import { SortOrder } from "antd/lib/table/interface";
const { Title } = Typography;
function renderColumnLevel(text, entry) {
let color = 'black';
@@ -28,6 +30,9 @@ interface Props {
}
export default function LogTable({ logs, pageSize }: Props) {
if (!logs.length) {
return null;
}
const columns = [
{
title: "Level",
@@ -69,7 +74,8 @@ export default function LogTable({ logs, pageSize }: Props) {
];
return (
<div>
<div className="logs-section">
<Title level={2}>Logs</Title>
<Table
size="middle"
dataSource={logs}