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-09-15 19:58:41 +03:00
|
|
|
import { ColorProvider } from "utils/color-context";
|
|
|
|
import { ThemeProvider } from "utils/theme-context";
|
2022-09-08 11:48:16 +03:00
|
|
|
|
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
|
|
|
}}
|
|
|
|
>
|
2022-09-15 19:58:41 +03:00
|
|
|
<ColorProvider>
|
|
|
|
<ThemeProvider>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</ThemeProvider>
|
|
|
|
</ColorProvider>
|
2022-08-24 10:44:35 +03:00
|
|
|
</SWRConfig>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MyApp;
|