mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-09-21 18:17:05 +00:00
fix: remove remaining Svelte state warnings
This commit is contained in:
@@ -9,8 +9,12 @@
|
|||||||
};
|
};
|
||||||
const { title, message, commit, initialText, placeholder, isPassword }: Props = $props();
|
const { title, message, commit, initialText, placeholder, isPassword }: Props = $props();
|
||||||
|
|
||||||
let text = $state(initialText || "");
|
function initialTextSeed(): string {
|
||||||
let type = $state(isPassword ? "password" : "text");
|
return initialText ?? "";
|
||||||
|
}
|
||||||
|
|
||||||
|
let text = $state(initialTextSeed());
|
||||||
|
const type = $derived(isPassword ? "password" : "text");
|
||||||
function cancel() {
|
function cancel() {
|
||||||
commit(false);
|
commit(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user