diff --git a/frontend/src/layouts/resources.tsx b/frontend/src/layouts/resources.tsx
index 1583dd128..c3fe4a50e 100644
--- a/frontend/src/layouts/resources.tsx
+++ b/frontend/src/layouts/resources.tsx
@@ -1,5 +1,3 @@
-import { useRead } from "@hooks";
-import { DeploymentCard } from "@resources/deployment/card";
import { NewDeployment } from "@resources/deployment/new";
import { Button } from "@ui/button";
import { Input } from "@ui/input";
diff --git a/frontend/src/pages/dashboard/components/recently-viewed.tsx b/frontend/src/pages/dashboard/components/recently-viewed.tsx
index 7725180cd..373d835d7 100644
--- a/frontend/src/pages/dashboard/components/recently-viewed.tsx
+++ b/frontend/src/pages/dashboard/components/recently-viewed.tsx
@@ -11,7 +11,7 @@ import {
DropdownMenuTrigger,
} from "@ui/dropdown";
import { Button } from "@ui/button";
-import { ChevronDown, Hand, History, PlusCircle } from "lucide-react";
+import { ChevronDown, History, PlusCircle } from "lucide-react";
import { DeploymentCard } from "@resources/deployment/card";
import { NewDeployment } from "@resources/deployment/new";
import { ServerCard } from "@resources/server/card";
diff --git a/frontend/src/pages/dashboard/index.tsx b/frontend/src/pages/dashboard/index.tsx
index 175844119..d98060f07 100644
--- a/frontend/src/pages/dashboard/index.tsx
+++ b/frontend/src/pages/dashboard/index.tsx
@@ -1,4 +1,3 @@
-import { useUser } from "@hooks";
import { Card, CardHeader, CardTitle } from "@ui/card";
import { ServersChart } from "./components/servers-chart";
import { DeploymentsChart } from "./components/deployments-chart";
@@ -7,8 +6,6 @@ import { RecentlyViewed } from "./components/recently-viewed";
import { Box } from "lucide-react";
export const Dashboard = () => {
- const user = useUser().data;
-
return (
diff --git a/frontend/src/resources/build/util.tsx b/frontend/src/resources/build/util.tsx
index df4b44bc0..1cffd3bbe 100644
--- a/frontend/src/resources/build/util.tsx
+++ b/frontend/src/resources/build/util.tsx
@@ -18,7 +18,7 @@ export const BuildVersion = ({ id }: { id: string }) => {
export const BuildBuilder = ({ id }: { id: string }) => {
const builds = useRead({ type: "ListBuilds", params: {} }).data;
const build = builds?.find((b) => b.id === id);
- return <>{"build.builder" ?? "..."}>;
+ return <>{"build.builder " + build?.id ?? "..."}>;
};
export const BuildLastBuilt = ({ id }: { id: string }) => {
diff --git a/frontend/src/resources/deployment/page.tsx b/frontend/src/resources/deployment/page.tsx
index ba1fd167e..ef668c23e 100644
--- a/frontend/src/resources/deployment/page.tsx
+++ b/frontend/src/resources/deployment/page.tsx
@@ -9,7 +9,6 @@ import {
DeploymentStatusIcon,
} from "./util";
import {
- DeleteDeployment,
RedeployContainer,
RemoveContainer,
StartOrStopContainer,
@@ -35,7 +34,6 @@ export const Deployment = () => {
|
|
- {/* */}
}
actions={
diff --git a/frontend/src/resources/deployment/util.tsx b/frontend/src/resources/deployment/util.tsx
index 4bb5d0e1f..e66e38b65 100644
--- a/frontend/src/resources/deployment/util.tsx
+++ b/frontend/src/resources/deployment/util.tsx
@@ -2,7 +2,6 @@ import { useRead } from "@hooks";
import { CardDescription } from "@ui/card";
import { cn } from "@util/helpers";
import { Circle, HardDrive, Server } from "lucide-react";
-import { Link } from "react-router-dom";
export const DeploymentName = ({
deploymentId,
@@ -52,7 +51,7 @@ export const DeploymentInfo = ({ deploymentId }: { deploymentId: string }) => {
{/* {data ? deployment?.container?.image ?? "no image" : "..."} */}
- build.name @ build.version
+ build.name @ build.version {deployment?.image}
diff --git a/frontend/src/resources/server/util.tsx b/frontend/src/resources/server/util.tsx
index 4c15101df..34cd88c0a 100644
--- a/frontend/src/resources/server/util.tsx
+++ b/frontend/src/resources/server/util.tsx
@@ -1,16 +1,9 @@
import { useRead } from "@hooks";
import { ServerStatus } from "@monitor/client/dist/types";
-import {
- Card,
- CardContent,
- CardDescription,
- CardHeader,
- CardTitle,
-} from "@ui/card";
+import { CardDescription } from "@ui/card";
import { cn } from "@util/helpers";
import { Circle, Cpu, Database, MemoryStick } from "lucide-react";
import { useEffect } from "react";
-import { Link } from "react-router-dom";
export const ServerName = ({ serverId }: { serverId: string | undefined }) => {
const servers = useRead({ type: "ListServers", params: {} }).data;
diff --git a/frontend/src/util/socket.tsx b/frontend/src/util/socket.tsx
index ecce2dcb1..b30757970 100644
--- a/frontend/src/util/socket.tsx
+++ b/frontend/src/util/socket.tsx
@@ -5,7 +5,7 @@ import rws from "reconnecting-websocket";
export const WebsocketProvider = () => {
const ws = new rws("ws-url");
- const [open, set] = useState(false);
+ const [_, set] = useState(false);
ws.addEventListener("open", () => {
const token = localStorage.getItem("token");