diff --git a/pkgs/webview-ui/app/src/routes/machines/details.tsx b/pkgs/webview-ui/app/src/routes/machines/details.tsx index edfa3d7c6..ffaf67dfa 100644 --- a/pkgs/webview-ui/app/src/routes/machines/details.tsx +++ b/pkgs/webview-ui/app/src/routes/machines/details.tsx @@ -1,12 +1,9 @@ -import { callApi, ClanService, SuccessData, SuccessQuery } from "@/src/api"; -import { get_iwd_service } from "@/src/api/wifi"; +import { callApi, SuccessData, SuccessQuery } from "@/src/api"; import { activeURI } from "@/src/App"; import { BackButton } from "@/src/components/BackButton"; import { Button } from "@/src/components/button"; import { FileInput } from "@/src/components/FileInput"; import Icon from "@/src/components/icon"; -import { RndThumbnail } from "@/src/components/noiseThumbnail"; -import { SelectInput } from "@/src/components/SelectInput"; import { TextInput } from "@/src/components/TextInput"; import { selectSshKeys } from "@/src/hooks"; import { @@ -16,9 +13,10 @@ import { setValue, } from "@modular-forms/solid"; import { useParams } from "@solidjs/router"; -import { createQuery, useQueryClient } from "@tanstack/solid-query"; -import { createSignal, For, Show, Switch, Match, JSXElement } from "solid-js"; +import { createQuery } from "@tanstack/solid-query"; +import { createSignal, For, Show } from "solid-js"; import toast from "solid-toast"; +import { MachineAvatar } from "./avatar"; type MachineFormInterface = MachineData & { sshKey?: File; @@ -65,7 +63,7 @@ const InstallMachine = (props: InstallMachineProps) => { } const loading_toast = toast.loading( - "Installing machine. Grab coffee (15min)...", + "Installing machine. Grab coffee (15min)..." ); const r = await callApi("install_machine", { opts: { @@ -248,13 +246,13 @@ const MachineForm = (props: MachineDetailsProps) => { ...values.machine, // TODO: Remove this workaround tags: Array.from( - values.machine.tags || props.initialData.machine.tags || [], + values.machine.tags || props.initialData.machine.tags || [] ), }, }); if (machine_response.status === "error") { toast.error( - `Failed to set machine: ${machine_response.errors[0].message}`, + `Failed to set machine: ${machine_response.errors[0].message}` ); } if (machine_response.status === "success") { @@ -305,24 +303,9 @@ const MachineForm = (props: MachineDetailsProps) => { return ( <>