finish add enrollment from seat:wqs
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user