From e924cb39173a63fba02522b833ed86b05239d54a Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Wed, 18 Nov 2020 13:57:41 +0200 Subject: [PATCH] fix type errors --- components/layout/Footer.tsx | 10 +++------- components/plans/StageSelector.tsx | 15 ++++++++------- next-env.d.ts | 2 ++ package.json | 2 +- tsconfig.json | 2 +- 5 files changed, 15 insertions(+), 16 deletions(-) diff --git a/components/layout/Footer.tsx b/components/layout/Footer.tsx index fec9315bc..49c82e0c6 100644 --- a/components/layout/Footer.tsx +++ b/components/layout/Footer.tsx @@ -1,10 +1,6 @@ import { Box, Image, useColorModeValue } from "@chakra-ui/react"; import { useMyTheme } from "lib/useMyTheme"; import { useRouter } from "next/dist/client/router"; -import footerOctoDark from "public/layout/b8ing_dark.png"; -import footerOctoLight from "public/layout/b8ing_light.png"; -import footerSquidDark from "public/layout/boing_dark.png"; -import footerSquidLight from "public/layout/boing_light.png"; import FooterContent from "./FooterContent"; import FooterWaves from "./FooterWaves"; @@ -12,14 +8,14 @@ const Footer: React.FC = () => { const species = useRouter().asPath.charCodeAt(1) % 2 === 0 ? "squid" : "octo"; const { themeColorHex: themeColor } = useMyTheme(); const footerImageSrc = useColorModeValue( - { octo: footerOctoLight, squid: footerSquidLight }, - { octo: footerOctoDark, squid: footerSquidDark } + { octo: "b8ing_light", squid: "boing_dark" }, + { octo: "b8ing_dark", squid: "boing_dark" } )[species]; return ( = ({ return (