feat: add NIP-88 poll support
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user