Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ben594 committed Oct 26, 2023
1 parent aa54673 commit 8df1256
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { PanelExtensionContext, RenderState, Topic, MessageEvent, Immutable } from "@foxglove/studio";
import Alert from "@mui/material/Alert";
import Paper from "@mui/material/Paper";
import Table from "@mui/material/Table";
import TableBody from "@mui/material/TableBody";
import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableRow from "@mui/material/TableRow";
import { useTheme } from "@mui/material/styles";
import { useLayoutEffect, useEffect, useState, useMemo } from "react";
import { useLayoutEffect, useEffect, useState } from "react";
import * as React from "react";
import { createRoot } from "react-dom/client";

Expand All @@ -24,7 +23,6 @@ type State = {

function SystemStatusPanel({ context }: { context: PanelExtensionContext }): JSX.Element {
const [topics, setTopics] = useState<readonly Topic[] | undefined>();
const [message, setMessage] = useState<any>();

const [renderDone, setRenderDone] = useState<(() => void) | undefined>();

Expand All @@ -37,9 +35,6 @@ function SystemStatusPanel({ context }: { context: PanelExtensionContext }): JSX
return initialState;
});

// Get topics
const imageTopics = useMemo(() => topics ?? [], [topics]);

//define values in table
const rows = [createData("CPU", state.cpuUsage), createData("RAM", state.ramUsage)];

Expand Down Expand Up @@ -84,11 +79,6 @@ function SystemStatusPanel({ context }: { context: PanelExtensionContext }): JSX

return (
<div style={{ height: "100%", padding: "1rem" }}>
{context.subscribe == undefined && (
<Alert variant="filled" severity="error">
Subscribing to topics is not supported by this connection
</Alert>
)}
<div>
<TableContainer component={Paper}>
<Table size="small" aria-label="simple table">
Expand Down

0 comments on commit 8df1256

Please sign in to comment.