fix(ui): make shared switches visible across CMS themes
CI / check (push) Successful in 1m13s
CI / deploy (push) Successful in 1m2s

This commit is contained in:
Simo committed 2026-09-06 21:30:13 +02:00
1 parent 35d0f3ee01
commit 7033d65846
8 files changed
+131 -61

No files matched your search

+6 -2
View File
@@ -146,19 +146,23 @@ export function PollForm({ defaultValues }: PollFormProps) {
<div className="flex gap-6">
<div className="flex items-center gap-2">
<Switch
id="poll-show-results"
checked={form.watch("showResults") === 1}
onCheckedChange={(v) => form.setValue("showResults", v ? 1 : 0)}
/>
<Label>{t("formShowResults")}</Label>
<Label htmlFor="poll-show-results">{t("formShowResults")}</Label>
</div>
<div className="flex items-center gap-2">
<Switch
id="poll-multiple-choice"
checked={form.watch("multipleChoice") === 1}
onCheckedChange={(v) =>
form.setValue("multipleChoice", v ? 1 : 0)
}
/>
<Label>{t("formAllowMultiple")}</Label>
<Label htmlFor="poll-multiple-choice">
{t("formAllowMultiple")}
</Label>
</div>
</div>