Version Info and modal titles

This commit is contained in:
Sacha Weatherstone
2022-02-19 22:21:19 +11:00
parent e5d75eff19
commit d8fedb56bb
12 changed files with 171 additions and 270 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
export default async function fetcher<JSON>(
export const fetcher = async <JSON>(
input: RequestInfo,
init?: RequestInit,
): Promise<JSON> {
): Promise<JSON> => {
const res = await fetch(input, init);
return res.json() as Promise<JSON>;
}
};
-9
View File
@@ -1,9 +0,0 @@
import { request } from 'graphql-request';
export default async function gqlFetcher<JSON>(
url: string,
query?: string,
): Promise<JSON> {
// const res = await fetch(input, init);
return await request<JSON>(url, query);
}