fix: remove remaining Svelte state warnings

This commit is contained in:
vorotamoroz
2026-07-17 15:37:20 +00:00
parent f6b03dc811
commit 1b4a0d76dd
+6 -2
View File
@@ -9,8 +9,12 @@
};
const { title, message, commit, initialText, placeholder, isPassword }: Props = $props();
let text = $state(initialText || "");
let type = $state(isPassword ? "password" : "text");
function initialTextSeed(): string {
return initialText ?? "";
}
let text = $state(initialTextSeed());
const type = $derived(isPassword ? "password" : "text");
function cancel() {
commit(false);
}