Feat: Rendering a search test list with real data #3221 (#7138)

### What problem does this PR solve?

Feat: Rendering a search test list with real data #3221
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-04-18 16:29:41 +08:00
committed by GitHub
parent 1b4016317e
commit 42e236f464
4 changed files with 60 additions and 31 deletions

View File

@ -28,10 +28,17 @@ import { trim } from 'lodash';
import { useEffect } from 'react';
import { useTranslation } from 'react-i18next';
export default function TestingForm() {
const { t } = useTranslation();
type TestingFormProps = Pick<
ReturnType<typeof useTestRetrieval>,
'loading' | 'refetch' | 'setValues'
>;
const { loading, setValues, refetch } = useTestRetrieval();
export default function TestingForm({
loading,
refetch,
setValues,
}: TestingFormProps) {
const { t } = useTranslation();
const formSchema = z.object({
question: z.string().min(1, {