mirror of
https://github.com/supabase/supabase.git
synced 2026-07-05 09:05:10 +08:00
* Update layout of existing destination panel + add some improvements * update icn * Smol fix
26 lines
806 B
TypeScript
26 lines
806 B
TypeScript
import type { UseFormReturn } from 'react-hook-form'
|
|
|
|
import { FormControl_Shadcn_, FormField_Shadcn_, Input_Shadcn_ } from 'ui'
|
|
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
|
|
import type { DestinationPanelSchemaType } from './DestinationPanel.schema'
|
|
|
|
type DestinationNameInputProps = {
|
|
form: UseFormReturn<DestinationPanelSchemaType>
|
|
}
|
|
|
|
export const DestinationNameInput = ({ form }: DestinationNameInputProps) => {
|
|
return (
|
|
<FormField_Shadcn_
|
|
control={form.control}
|
|
name="name"
|
|
render={({ field }) => (
|
|
<FormItemLayout label="Name" layout="horizontal">
|
|
<FormControl_Shadcn_>
|
|
<Input_Shadcn_ {...field} placeholder="My destination" />
|
|
</FormControl_Shadcn_>
|
|
</FormItemLayout>
|
|
)}
|
|
/>
|
|
)
|
|
}
|