mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-18 16:43:56 -05:00
fix console errors
This commit is contained in:
parent
a8342f7b49
commit
74cc2a3aaf
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
|
|
|
|||
|
|
@ -136,7 +136,9 @@ const IconNavBar = () => {
|
|||
if (!menuItems.length) {
|
||||
return (
|
||||
<Link key={code} href={code}>
|
||||
<MenuNavIcon />
|
||||
<a>
|
||||
<MenuNavIcon />
|
||||
</a>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user