From 947830904239d51ec9e94971fed6346c1089911f Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 23 Jan 2023 19:01:28 +0100 Subject: chore: make Links and Images compliant with Next.js 13 --- src/pages/cv.tsx | 48 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 11 deletions(-) (limited to 'src/pages/cv.tsx') diff --git a/src/pages/cv.tsx b/src/pages/cv.tsx index 8b17da0..d938d98 100644 --- a/src/pages/cv.tsx +++ b/src/pages/cv.tsx @@ -1,5 +1,5 @@ -import Heading from '@components/atoms/headings/heading'; -import Link from '@components/atoms/links/link'; +import Heading, { HeadingProps } from '@components/atoms/headings/heading'; +import Link, { LinkProps } from '@components/atoms/links/link'; import List from '@components/atoms/lists/list'; import ImageWidget from '@components/organisms/widgets/image-widget'; import SocialMedia from '@components/organisms/widgets/social-media'; @@ -26,6 +26,32 @@ import Script from 'next/script'; import React, { ReactNode } from 'react'; import { useIntl } from 'react-intl'; +const ExternalLink = (props: LinkProps) => ; + +const H1 = (props: Omit) => { + return ; +}; + +const H2 = (props: Omit) => { + return ; +}; + +const H3 = (props: Omit) => { + return ; +}; + +const H4 = (props: Omit) => { + return ; +}; + +const H5 = (props: Omit) => { + return ; +}; + +const H6 = (props: Omit) => { + return ; +}; + /** * CV page. */ @@ -122,15 +148,15 @@ const CVPage: NextPageWithLayout = () => { const schemaJsonLd = getSchemaJson([webpageSchema, cvSchema]); const components: NestedMDXComponents = { - a: (props) => , - h1: (props) => , - h2: (props) => , - h3: (props) => , - h4: (props) => , - h5: (props) => , - h6: (props) => , - Link: (props) => , - List: (props) => , + a: ExternalLink, + h1: H1, + h2: H2, + h3: H3, + h4: H4, + h5: H5, + h6: H6, + Link: Link, + List: List, }; return ( -- cgit v1.2.3