2022-09-07 16:53:24 +03:00
|
|
|
/* eslint-disable react/jsx-props-no-spreading */
|
2022-08-24 10:44:35 +03:00
|
|
|
import { SWRConfig } from "swr";
|
|
|
|
import "styles/globals.css";
|
|
|
|
import "styles/weather-icons.css";
|
2022-08-25 11:14:17 +03:00
|
|
|
import "styles/theme.css";
|
2022-08-24 10:44:35 +03:00
|
|
|
|
|
|
|
function MyApp({ Component, pageProps }) {
|
|
|
|
return (
|
|
|
|
<SWRConfig
|
|
|
|
value={{
|
2022-08-25 11:14:17 +03:00
|
|
|
fetcher: (resource, init) => fetch(resource, init).then((res) => res.json()),
|
2022-08-24 10:44:35 +03:00
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</SWRConfig>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MyApp;
|