Files
Gildas Garcia 0facd341a6 chore: remove UI form components _Shadcn_ suffix (#45212)
## Problem

We used to have a `_Shadcn_` suffix for all the shadcn form components
because we also had `formik` form components.
This is not needed anymore.

## Solution

- Remove the suffix
- Update all usages
2026-04-24 12:14:15 +02:00

27 lines
909 B
TypeScript

import { UseFormReturn } from 'react-hook-form'
import { FormControl, FormField, Input_Shadcn_, SheetSection } from 'ui'
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
import { CreateQueueForm } from './CreateQueueSheet.schema'
export function QueueNameField({ form }: { form: UseFormReturn<CreateQueueForm> }) {
return (
<SheetSection>
<FormField
control={form.control}
name="name"
render={({ field }) => (
<FormItemLayout label="Name" layout="vertical" className="gap-1 relative">
<FormControl>
<Input_Shadcn_ {...field} />
</FormControl>
<span className="text-foreground-lighter text-xs absolute top-0 right-0">
Can include letters, numbers, underscores, and hyphens
</span>
</FormItemLayout>
)}
/>
</SheetSection>
)
}