add theme switcher

This commit is contained in:
Ben Phelps 2022-08-25 11:14:17 +03:00
parent 5711b22b4e
commit 1b2fa720c6
8 changed files with 469 additions and 53 deletions

View file

@ -1,13 +1,13 @@
import { SWRConfig } from "swr";
import "styles/globals.css";
import "styles/weather-icons.css";
import "styles/theme.css";
function MyApp({ Component, pageProps }) {
return (
<SWRConfig
value={{
fetcher: (resource, init) =>
fetch(resource, init).then((res) => res.json()),
fetcher: (resource, init) => fetch(resource, init).then((res) => res.json()),
}}
>
<Component {...pageProps} />