Skip to content

Commit

Permalink
Update src/GlobalFormsProvider/GlobalFormsContext.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Benedikt Franke <[email protected]>
  • Loading branch information
mic-web and spawnia authored Sep 9, 2024
1 parent 8e2cf6f commit ac3e5b7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/GlobalFormsProvider/GlobalFormsContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,7 @@ export const GlobalFormsContext = React.createContext<GlobalFormsContextType>({
});

export function useGlobalForms() {
const { isSubmitting, reset, submit } = useContext(GlobalFormsContext);

return {
isSubmitting,
reset,
submit,
};
return useContext(GlobalFormsContext);
}

export function normalizeFormInfo(form: FormInfoObjectOrString): FormInfo {
Expand Down

0 comments on commit ac3e5b7

Please sign in to comment.