fix console errors

This commit is contained in:
Kalle (Sendou) 2020-10-16 13:31:04 +03:00
parent a8342f7b49
commit 74cc2a3aaf
3 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ import { useMemo } from "react";
let apolloClient: ApolloClient<NormalizedCacheObject> | undefined;
function createIsomorphLink(context: ResolverContext = {}) {
function createIsomorphLink(context: Context | {} = {}) {
if (typeof window === "undefined") {
const { SchemaLink } = require("@apollo/client/link/schema");
const { schema } = require("graphql/schema");

View File

@ -4,14 +4,12 @@ import footerOctoLight from "assets/b8ing_light.png";
import footerSquidDark from "assets/boing_dark.png";
import footerSquidLight from "assets/boing_light.png";
import { useMyTheme } from "lib/useMyTheme";
import { useState } from "react";
import { useRouter } from "next/dist/client/router";
import FooterContent from "./FooterContent";
import FooterWaves from "./FooterWaves";
const Footer: React.FC = () => {
const [species] = useState<"octo" | "squid">(
Math.random() > 0.5 ? "octo" : "squid"
);
const species = useRouter().asPath.charCodeAt(1) % 2 === 0 ? "squid" : "octo";
const { themeColor } = useMyTheme();
const footerImageSrc = useColorModeValue(
{ octo: footerOctoLight, squid: footerSquidLight },

View File

@ -136,7 +136,9 @@ const IconNavBar = () => {
if (!menuItems.length) {
return (
<Link key={code} href={code}>
<MenuNavIcon />
<a>
<MenuNavIcon />
</a>
</Link>
);
}