Feat: Rendering recall test page #3221 (#7689)

### What problem does this PR solve?

Feat: Rendering recall test page #3221
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-05-16 18:56:48 +08:00
committed by GitHub
parent d73a08b9eb
commit bfaa469b9a
10 changed files with 199 additions and 134 deletions

View File

@ -1,3 +1,4 @@
import { cn } from '@/lib/utils';
import { ReactNode } from 'react';
import { useFormContext } from 'react-hook-form';
import { SingleFormSlider } from './ui/dual-range-slider';
@ -18,6 +19,7 @@ type SliderInputFormFieldProps = {
label: string;
tooltip?: ReactNode;
defaultValue?: number;
className?: string;
};
export function SliderInputFormField({
@ -28,6 +30,7 @@ export function SliderInputFormField({
name,
tooltip,
defaultValue,
className,
}: SliderInputFormFieldProps) {
const form = useFormContext();
@ -39,7 +42,12 @@ export function SliderInputFormField({
render={({ field }) => (
<FormItem>
<FormLabel tooltip={tooltip}>{label}</FormLabel>
<div className="flex items-center gap-14 justify-between">
<div
className={cn(
'flex items-center gap-14 justify-between',
className,
)}
>
<FormControl>
<SingleFormSlider
{...field}