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:
@@ -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: '' },
|
||||
});
|
||||
|
Reference in New Issue
Block a user