add accessible skip-to-content link

This commit is contained in:
jake committed 2022-05-30 22:52:46 -04:00
1 parent be54bc2644
commit 9410a6b2df
6 files changed
+111 -70

No files matched your search

+7 -2
View File
@@ -3,5 +3,10 @@
// note: fetch does *not* need to be poly/ponyfilled in Next.js:
// https://nextjs.org/blog/next-9-1-7#new-built-in-polyfills-fetch-url-and-objectassign
// eslint-disable-next-line no-undef
export const fetcher = (url: RequestInfo) => fetch(url).then((res) => res.json());
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const fetcher = async (input: RequestInfo, init?: RequestInit): Promise<any> => {
const res = await fetch(input, init);
return res.json();
};
export default fetcher;