From 82d310403c4bb09bc2f0a204b6374934a10cf348 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Sat, 29 Jan 2022 23:38:13 +0100
Subject: refactor(config): move config from config dir to utils

---
 src/components/Branding/Branding.tsx | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

(limited to 'src/components/Branding/Branding.tsx')

diff --git a/src/components/Branding/Branding.tsx b/src/components/Branding/Branding.tsx
index efb3a49..adefbca 100644
--- a/src/components/Branding/Branding.tsx
+++ b/src/components/Branding/Branding.tsx
@@ -1,5 +1,5 @@
 import photo from '@assets/images/armand-philippot.jpg';
-import { config } from '@config/website';
+import { settings } from '@utils/config';
 import Head from 'next/head';
 import Image from 'next/image';
 import Link from 'next/link';
@@ -18,12 +18,12 @@ const Branding: BrandingReturn = ({ isHome = false }) => {
   const schemaJsonLd: WithContext<Person> = {
     '@context': 'https://schema.org',
     '@type': 'Person',
-    '@id': `${config.url}/#branding`,
-    name: config.name,
-    url: config.url,
-    jobTitle: config.baseline,
+    '@id': `${settings.url}/#branding`,
+    name: settings.name,
+    url: settings.url,
+    jobTitle: settings.baseline,
     image: photo.src,
-    subjectOf: { '@id': `${config.url}` },
+    subjectOf: { '@id': `${settings.url}` },
   };
 
   return (
@@ -45,7 +45,7 @@ const Branding: BrandingReturn = ({ isHome = false }) => {
                   description: 'Branding: branding name picture.',
                 },
                 {
-                  brandingName: config.name,
+                  brandingName: settings.name,
                 }
               )}
               layout="responsive"
@@ -57,10 +57,10 @@ const Branding: BrandingReturn = ({ isHome = false }) => {
         </div>
         <TitleTag className={styles.name}>
           <Link href="/">
-            <a className={styles.link}>{config.name}</a>
+            <a className={styles.link}>{settings.name}</a>
           </Link>
         </TitleTag>
-        <p className={styles.job}>{config.baseline}</p>
+        <p className={styles.job}>{settings.baseline}</p>
       </div>
     </>
   );
-- 
cgit v1.2.3

