renames tests to js

This commit is contained in:
James
2020-11-30 14:36:08 -05:00
parent 7d3b6d12e3
commit cee40169f3
10 changed files with 5 additions and 5 deletions

View File

@@ -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);