add rudimentary popover for checkboxes

This commit is contained in:
andrzej 2024-06-14 22:44:13 +02:00
parent 5ad03054a9
commit d4d73750b3
1 changed files with 53 additions and 57 deletions

View File

@ -92,13 +92,11 @@ export default function StoryForm({ genres }) {
</FormItem> </FormItem>
)} )}
/> />
{ <Popover.Root>
// <Popover.Root> <Popover.Trigger>
// <Popover.Trigger> Genres
// Genres </Popover.Trigger>
// </Popover.Trigger> <Popover.Content>
// <Popover.Content>
}
<FormField <FormField
control={form.control} control={form.control}
name="genres" name="genres"
@ -145,10 +143,8 @@ export default function StoryForm({ genres }) {
</FormItem> </FormItem>
)} )}
/> />
{ </Popover.Content>
// </Popover.Content> </Popover.Root>
// </Popover.Root>
}
<Button type="submit">Submit</Button> <Button type="submit">Submit</Button>
</form> </form>