Remove some redundant typing

This commit is contained in:
Snarling
2022-09-20 07:23:35 -04:00
parent db835862d7
commit 6e3a6be106
14 changed files with 26 additions and 244 deletions
+4 -6
View File
@@ -1,10 +1,8 @@
import React, { useContext } from "react";
import { IGang } from "../IGang";
import { Gang } from "../Gang";
export const Context: {
Gang: React.Context<IGang>;
} = {
Gang: React.createContext<IGang>({} as IGang),
export const Context = {
Gang: React.createContext<Gang>({} as Gang),
};
export const useGang = (): IGang => useContext(Context.Gang);
export const useGang = (): Gang => useContext(Context.Gang);