Version Info and modal titles

This commit is contained in:
Sacha Weatherstone committed 2022-02-19 22:21:19 +11:00
1 parent e5d75eff19
commit d8fedb56bb
12 files changed
+171 -270

No files matched your search

+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);
}