From 8df12566ca3de31121ff55d0f7d38250533aa0b0 Mon Sep 17 00:00:00 2001 From: ben594 Date: Thu, 26 Oct 2023 19:09:26 -0400 Subject: [PATCH] Lint --- .../system-status-panel/src/SystemStatusPanel.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/foxglove/extensions/system-status-panel/src/SystemStatusPanel.tsx b/foxglove/extensions/system-status-panel/src/SystemStatusPanel.tsx index 725c2bc17..9f1e4d2a9 100644 --- a/foxglove/extensions/system-status-panel/src/SystemStatusPanel.tsx +++ b/foxglove/extensions/system-status-panel/src/SystemStatusPanel.tsx @@ -1,5 +1,4 @@ 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"; @@ -7,7 +6,7 @@ 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"; @@ -24,7 +23,6 @@ type State = { function SystemStatusPanel({ context }: { context: PanelExtensionContext }): JSX.Element { const [topics, setTopics] = useState(); - const [message, setMessage] = useState(); const [renderDone, setRenderDone] = useState<(() => void) | undefined>(); @@ -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)]; @@ -84,11 +79,6 @@ function SystemStatusPanel({ context }: { context: PanelExtensionContext }): JSX return (
- {context.subscribe == undefined && ( - - Subscribing to topics is not supported by this connection - - )}