aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/_app.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-29 23:38:13 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-29 23:38:13 +0100
commit82d310403c4bb09bc2f0a204b6374934a10cf348 (patch)
tree488e93e373a7d9215531bb8fcfc37bcbb290d0fa /src/pages/_app.tsx
parentf49dfba86b9ac745ddc374ee0f02f03d7e81d872 (diff)
refactor(config): move config from config dir to utils
Diffstat (limited to 'src/pages/_app.tsx')
-rw-r--r--src/pages/_app.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index ec97ff7..7c6142c 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -1,5 +1,5 @@
-import { config } from '@config/website';
import { AppPropsWithLayout } from '@ts/types/app';
+import { settings } from '@utils/config';
import { ThemeProvider } from 'next-themes';
import { useRouter } from 'next/router';
import { IntlProvider } from 'react-intl';
@@ -7,7 +7,7 @@ import '../styles/globals.scss';
const MyApp = ({ Component, pageProps }: AppPropsWithLayout) => {
const { locale, defaultLocale } = useRouter();
- const appLocale: string = locale || config.locales.defaultLocale;
+ const appLocale: string = locale || settings.locales.defaultLocale;
const getLayout = Component.getLayout ?? ((page) => page);
return (