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-25 19:43:00 +03:00
|
|
|
import { appWithTranslation } from "next-i18next";
|
2022-09-08 11:48:16 +03:00
|
|
|
|
2022-08-24 10:44:35 +03:00
|
|
|
import "styles/globals.css";
|
2022-08-25 11:14:17 +03:00
|
|
|
import "styles/theme.css";
|
2022-09-24 14:51:12 +03:00
|
|
|
import "styles/manrope.css";
|
2022-09-25 19:43:00 +03:00
|
|
|
import nextI18nextConfig from "../../next-i18next.config";
|
2022-08-24 10:44:35 +03:00
|
|
|
|
2022-09-26 12:04:37 +03:00
|
|
|
import { ColorProvider } from "utils/contexts/color";
|
|
|
|
import { ThemeProvider } from "utils/contexts/theme";
|
|
|
|
import { SettingsProvider } from "utils/contexts/settings";
|
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>
|
2022-09-21 09:00:57 +03:00
|
|
|
<SettingsProvider>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</SettingsProvider>
|
2022-09-15 19:58:41 +03:00
|
|
|
</ThemeProvider>
|
|
|
|
</ColorProvider>
|
2022-08-24 10:44:35 +03:00
|
|
|
</SWRConfig>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2022-09-25 19:43:00 +03:00
|
|
|
export default appWithTranslation(MyApp, nextI18nextConfig);
|