aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/PostMeta/PostMeta.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/components/PostMeta/PostMeta.tsx
parentf49dfba86b9ac745ddc374ee0f02f03d7e81d872 (diff)
refactor(config): move config from config dir to utils
Diffstat (limited to 'src/components/PostMeta/PostMeta.tsx')
-rw-r--r--src/components/PostMeta/PostMeta.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/PostMeta/PostMeta.tsx b/src/components/PostMeta/PostMeta.tsx
index 86e4e71..b951c44 100644
--- a/src/components/PostMeta/PostMeta.tsx
+++ b/src/components/PostMeta/PostMeta.tsx
@@ -1,5 +1,5 @@
-import { config } from '@config/website';
import { ArticleMeta } from '@ts/types/articles';
+import { settings } from '@utils/config';
import { getFormattedDate } from '@utils/helpers/format';
import Link from 'next/link';
import { useRouter } from 'next/router';
@@ -28,7 +28,7 @@ const PostMeta = ({
} = meta;
const intl = useIntl();
const router = useRouter();
- const locale = router.locale ? router.locale : config.locales.defaultLocale;
+ const locale = router.locale ? router.locale : settings.locales.defaultLocale;
const isThematic = () => router.asPath.includes('/thematique/');
const isArticle = () => router.asPath.includes('/article/');