renames tests to js
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import { createContext, useContext } from 'react';
|
||||
import { Context as FormContext } from './types';
|
||||
import { Context } from './types';
|
||||
|
||||
const FormContext = createContext({} as FormContext);
|
||||
const FormWatchContext = createContext({} as FormContext);
|
||||
const FormContext = createContext({} as Context);
|
||||
const FormWatchContext = createContext({} as Context);
|
||||
const SubmittedContext = createContext(false);
|
||||
const ProcessingContext = createContext(false);
|
||||
const ModifiedContext = createContext(false);
|
||||
|
||||
const useForm = (): FormContext => useContext(FormContext);
|
||||
const useWatchForm = (): FormContext => useContext(FormWatchContext);
|
||||
const useForm = (): Context => useContext(FormContext);
|
||||
const useWatchForm = (): Context => useContext(FormWatchContext);
|
||||
const useFormSubmitted = (): boolean => useContext(SubmittedContext);
|
||||
const useFormProcessing = (): boolean => useContext(ProcessingContext);
|
||||
const useFormModified = (): boolean => useContext(ModifiedContext);
|
||||
|
||||
Reference in New Issue
Block a user