feat: attempt to fix the crud with auth
This commit is contained in:
13
contexts/FormField/FormFieldContext.ts
Normal file
13
contexts/FormField/FormFieldContext.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from 'react';
|
||||
import { FieldPath, FieldValues } from 'react-hook-form';
|
||||
|
||||
interface FormFieldContextValue<
|
||||
TFieldValues extends FieldValues = FieldValues,
|
||||
TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>
|
||||
> {
|
||||
name: TName;
|
||||
}
|
||||
|
||||
export const FormFieldContext = React.createContext<FormFieldContextValue>(
|
||||
{} as FormFieldContextValue
|
||||
);
|
||||
Reference in New Issue
Block a user