fix: resolve texts add and delete flow

This commit is contained in:
2026-02-05 18:35:13 +05:00
parent a5cea0ab57
commit 1b8a035708
5 changed files with 14 additions and 10 deletions
+3 -2
View File
@@ -4,15 +4,16 @@
interface Props {
text: string;
id: number;
ondelete: () => void;
}
let { text = $bindable(), ondelete }: Props = $props();
let { text = $bindable(), id, ondelete }: Props = $props();
</script>
<div class="text-item">
<input type="text" bind:value={text} />
<Button icon={IconCross} type="danger" on:click={ondelete} />
<Button icon={IconCross} type="danger" onclick={() => ondelete(id)} />
</div>
<style>