mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-02 21:43:39 +01:00
33 lines
911 B
JavaScript
33 lines
911 B
JavaScript
/* eslint-disable react/jsx-props-no-spreading */
|
|
import { SWRConfig } from "swr";
|
|
import { appWithTranslation } from "next-i18next";
|
|
|
|
import "styles/globals.css";
|
|
import "styles/theme.css";
|
|
import "styles/manrope.css";
|
|
import nextI18nextConfig from "../../next-i18next.config";
|
|
|
|
import { ColorProvider } from "utils/color-context";
|
|
import { ThemeProvider } from "utils/theme-context";
|
|
import { SettingsProvider } from "utils/settings-context";
|
|
|
|
function MyApp({ Component, pageProps }) {
|
|
return (
|
|
<SWRConfig
|
|
value={{
|
|
fetcher: (resource, init) => fetch(resource, init).then((res) => res.json()),
|
|
}}
|
|
>
|
|
<ColorProvider>
|
|
<ThemeProvider>
|
|
<SettingsProvider>
|
|
<Component {...pageProps} />
|
|
</SettingsProvider>
|
|
</ThemeProvider>
|
|
</ColorProvider>
|
|
</SWRConfig>
|
|
);
|
|
}
|
|
|
|
export default appWithTranslation(MyApp, nextI18nextConfig);
|