diff --git a/pkgs/clan-app/ui/src/workflows/InstallMachine/steps/installSteps.tsx b/pkgs/clan-app/ui/src/workflows/InstallMachine/steps/installSteps.tsx
index de6c0312e..8fadd0bb4 100644
--- a/pkgs/clan-app/ui/src/workflows/InstallMachine/steps/installSteps.tsx
+++ b/pkgs/clan-app/ui/src/workflows/InstallMachine/steps/installSteps.tsx
@@ -18,7 +18,7 @@ import {
} from "../InstallMachine";
import { TextInput } from "@/src/components/Form/TextInput";
import { Alert, AlertProps } from "@/src/components/Alert/Alert";
-import { createSignal, For, Match, Show, Switch, JSX } from "solid-js";
+import { createSignal, For, Match, Show, Switch } from "solid-js";
import { Divider } from "@/src/components/Divider/Divider";
import { Orienter } from "@/src/components/Form/Orienter";
import { Button } from "@/src/components/Button/Button";
@@ -576,32 +576,6 @@ const PromptsFields = (props: PromptsFieldsProps) => {
const [inputType, setInputType] =
createSignal(defaultInputType);
- let endComponent:
- | ((props: { inverted?: boolean }) => JSX.Element)
- | undefined = undefined;
-
- if (defaultInputType === "password") {
- endComponent = (props) => (
- {
- setInputType((type) =>
- type === "password" ? "text" : "password",
- );
- }}
- >
-
-
- );
- }
-
return (
{
fieldInfo.prompt.display?.label ||
fieldInfo.prompt.name
}
- endComponent={endComponent}
+ endComponent={(local) => (
+
+ {
+ setInputType((type) =>
+ type === "password"
+ ? "text"
+ : "password",
+ );
+ }}
+ >
+
+
+
+ )}
description={fieldInfo.prompt.description}
value={f.value || fieldInfo.value || ""}
required={fieldInfo.prompt.display?.required}