1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

continue typescript & chakra v1 migrations [skip ci]

This commit is contained in:
checktheroads
2020-11-29 01:25:48 -07:00
parent e0eb51012d
commit e823c3416b
105 changed files with 2900 additions and 2308 deletions

View File

@@ -1,5 +1,5 @@
import { createState, useState } from '@hookstate/core';
import type { IGlobalState } from './types';
import type { TGlobalState } from './types';
// const StateContext = createContext(null);
@@ -26,7 +26,7 @@ import type { IGlobalState } from './types';
// export const useHyperglassState = () => useContext(StateContext);
export const globalState = createState<IGlobalState>({
export const globalState = createState<TGlobalState>({
isSubmitting: false,
formData: { query_location: [], query_target: '', query_type: '', query_vrf: '' },
});