feat: add NIP-88 poll support

This commit is contained in:
Bhavishy
2026-04-03 01:09:00 +05:30
parent d1b868e7ba
commit 7a44bd1677
6 changed files with 30 additions and 12 deletions
+9 -2
View File
@@ -118,7 +118,11 @@
{#each options as option, index (index)}
<div class="flex items-center gap-2">
<label class="input input-bordered flex w-full items-center gap-2">
<input bind:value={options[index]} class="grow" type="text" placeholder={`Option ${index + 1}`} />
<input
bind:value={options[index]}
class="grow"
type="text"
placeholder={`Option ${index + 1}`} />
</label>
<Button class="btn btn-ghost btn-sm" onclick={() => removeOption(index)}>
<Icon icon={MinusCircle} size={4} />
@@ -150,7 +154,10 @@
Ends at
{/snippet}
{#snippet input()}
<input bind:value={endsAt} class="input input-bordered w-full max-w-xs" type="datetime-local" />
<input
bind:value={endsAt}
class="input input-bordered w-full max-w-xs"
type="datetime-local" />
{/snippet}
</FieldInline>
</div>