feat: add Switch component for premium content toggle in CreateContentsPage
This commit is contained in:
@@ -26,7 +26,7 @@ type TComboboxOption = {
|
||||
id: string
|
||||
}
|
||||
|
||||
type TInputProperties<T extends FieldValues> = ComponentProps<
|
||||
type TComboboxProperties<T extends FieldValues> = ComponentProps<
|
||||
typeof HeadlessCombobox
|
||||
> & {
|
||||
id: string
|
||||
@@ -40,7 +40,7 @@ type TInputProperties<T extends FieldValues> = ComponentProps<
|
||||
}
|
||||
|
||||
export const Combobox = <TFormValues extends Record<string, unknown>>(
|
||||
properties: TInputProperties<TFormValues>,
|
||||
properties: TComboboxProperties<TFormValues>,
|
||||
) => {
|
||||
const {
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user