Skip to content

Commit

Permalink
chore: fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lideming committed Nov 29, 2023
1 parent 3af90ca commit 261dfdd
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion neetbox/frontend/src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component } from "react";
import React from "react";
import Logo from "./logo";

export default function FooterContent(): React.JSX.Element {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const ActionItem = memo(({ name, actionOptions: options, blocking, setBlo
{argType == "bool" ? (
<Checkbox
checked={args[argName] == "True"}
onChange={(val) =>
onChange={() =>
setArgs({
...args,
[argName]: args[argName] == "True" ? "False" : "True",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const CPUGraph = ({ hardwareData }: { hardwareData: Array<ProjectStatus["
},
} as echarts.EChartsOption;
return newOption;
}, [hardwareData]);
}, [cpus, hardwareData]);

return (
<ECharts initialOption={initialOption} updatingOption={updatingOption} style={{ height: "200px" }} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const GPUGraph = ({
},
} as echarts.EChartsOption;
return newOption;
}, [hardwareData]);
}, [gpuId, hardwareData]);

return (
<ECharts initialOption={initialOption} updatingOption={updatingOption} style={{ height: "200px" }} />
Expand Down
4 changes: 2 additions & 2 deletions neetbox/frontend/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { PropsWithChildren, useEffect } from "react";
import React from "react";
import ReactDOM from "react-dom/client";
import { RouterProvider, createBrowserRouter } from "react-router-dom";
import AppLayout, { Home } from "./App";
import AppLayout from "./App";
import LoginPage from "./pages/login";
import "./index.css";
import Console, { consoleRoutes } from "./pages/console";
Expand Down
2 changes: 1 addition & 1 deletion neetbox/frontend/src/pages/console/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useAPI } from "../../services/api";

export default function ConsoleNavBar() {
const location = useLocation();
const { isLoading, data, error } = useAPI("/list", { refreshInterval: 5000 });
const { data } = useAPI("/list", { refreshInterval: 5000 });
return (
<Nav
renderWrapper={(args) => {
Expand Down
1 change: 0 additions & 1 deletion neetbox/frontend/src/services/projects.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { atom, useAtom } from "jotai";
import { BetterAtom } from "../utils/betterAtom";
import { WsClient } from "./projectWebsocket";

Expand Down

0 comments on commit 261dfdd

Please sign in to comment.