Fix: types

This commit is contained in:
Johannes Kirschbauer
2024-08-20 10:45:22 +02:00
parent 92e3c3f40b
commit b8feff9ca6
2 changed files with 7 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ export const Flash = () => {
/* ==== WIFI NETWORK ==== */
const [wifiNetworks, setWifiNetworks] = createSignal<Wifi[]>([]);
const [passwordVisibility, setPasswordVisibility] = createSignal<boolean[]>(
[]
[],
);
createEffect(() => {
@@ -67,7 +67,7 @@ export const Flash = () => {
const updatedNetworks = wifiNetworks().filter((_, i) => i !== index);
setWifiNetworks(updatedNetworks);
const updatedVisibility = passwordVisibility().filter(
(_, i) => i !== index
(_, i) => i !== index,
);
setPasswordVisibility(updatedVisibility);
setValue(formStore, "wifi", updatedNetworks);
@@ -169,7 +169,7 @@ export const Flash = () => {
};
return (
<div class="m-4 bg-slate-50 p-4 pt-8 shadow-sm shadow-slate-400 rounded-lg">
<div class="m-4 rounded-lg bg-slate-50 p-4 pt-8 shadow-sm shadow-slate-400">
<Form onSubmit={handleSubmit}>
<div class="my-4">
<Field name="sshKeys" type="File[]">

View File

@@ -7,6 +7,7 @@ import { createQuery } from "@tanstack/solid-query";
import { createSignal, For, Show } from "solid-js";
import toast from "solid-toast";
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
type InstallForm = {
disk: string;
};
@@ -150,7 +151,7 @@ export const MachineDetails = () => {
machine_name: params.id,
clan_dir: curr_uri,
hostname: query.data.machine.deploy.targetHost,
},
}
);
toast.dismiss(lt);
@@ -159,7 +160,7 @@ export const MachineDetails = () => {
}
if (response.status === "error") {
toast.error(
"Failed to generate. " + response.errors[0].message,
"Failed to generate. " + response.errors[0].message
);
}
query.refetch();
@@ -200,7 +201,7 @@ export const MachineDetails = () => {
{"bytes @"}
{
query.data?.machine.deploy.targetHost?.split(
"@",
"@"
)?.[1]
}
</option>