finish add enrollment from seat:wqs

This commit is contained in:
2026-01-27 23:13:36 -03:00
parent ecd91dbc5e
commit 6d0d006bb0
9 changed files with 395 additions and 247 deletions

View File

@@ -7,7 +7,7 @@ import {
Trash2Icon,
XIcon
} from 'lucide-react'
import { Fragment, useEffect } from 'react'
import { Fragment, use, useEffect } from 'react'
import { Controller, useFieldArray, useForm, useWatch } from 'react-hook-form'
import { z } from 'zod'
@@ -64,7 +64,8 @@ type BulkProps = {
courses: Promise<{ hits: Course[] }>
}
export function Bulk({ courses }: BulkProps) {
export function Bulk({ courses: courses_ }: BulkProps) {
const { hits: courses } = use(courses_)
const wizard = useWizard()
const { update, ...state } = useWizardStore()
const form = useForm({