fixing auth, switching corporate, table member

This commit is contained in:
Muhammad Fajar
2022-12-12 08:41:53 +07:00
parent f164317b58
commit a3760b8757
17 changed files with 347 additions and 207 deletions

View File

@@ -8,12 +8,15 @@ type Props = {
children: ReactNode;
methods: UseFormReturn<any>;
onSubmit?: VoidFunction;
encType?: string;
};
export default function FormProvider({ children, onSubmit, methods }: Props) {
export default function FormProvider({ children, onSubmit, methods, encType }: Props) {
return (
<Form {...methods}>
<form onSubmit={onSubmit}>{children}</form>
<form onSubmit={onSubmit} encType={encType}>
{children}
</form>
</Form>
);
}