homepage/src/pages/_app.jsx

23 lines
465 B
React
Raw Normal View History

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";
2022-09-08 11:48:16 +03:00
2022-08-24 10:44:35 +03:00
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
2022-09-08 11:48:16 +03:00
import "utils/i18n";
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;