From a367f605b842ad0a71a63025da15ac62ed0364a5 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 21 Dec 2021 14:29:19 +0100 Subject: chore: add a breadcrumb component --- src/pages/mentions-legales.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/pages/mentions-legales.tsx') diff --git a/src/pages/mentions-legales.tsx b/src/pages/mentions-legales.tsx index c90b8d6..6155132 100644 --- a/src/pages/mentions-legales.tsx +++ b/src/pages/mentions-legales.tsx @@ -1,4 +1,4 @@ -import Layout from '@components/Layouts/Layout'; +import { getLayout } from '@components/Layouts/Layout'; import { seo } from '@config/seo'; import { getPageByUri } from '@services/graphql/queries'; import { NextPageWithLayout } from '@ts/types/app'; @@ -6,7 +6,6 @@ import { PageProps } from '@ts/types/pages'; import { loadTranslation } from '@utils/helpers/i18n'; import { GetStaticProps, GetStaticPropsContext } from 'next'; import Head from 'next/head'; -import { ReactElement } from 'react'; const LegalNotice: NextPageWithLayout = ({ page }) => { return ( @@ -26,7 +25,7 @@ const LegalNotice: NextPageWithLayout = ({ page }) => { ); }; -LegalNotice.getLayout = (page: ReactElement) => {page}; +LegalNotice.getLayout = getLayout; export const getStaticProps: GetStaticProps = async ( context: GetStaticPropsContext @@ -36,9 +35,11 @@ export const getStaticProps: GetStaticProps = async ( process.env.NODE_ENV === 'production' ); const page = await getPageByUri('/mentions-legales/'); + const breadcrumbTitle = page.title; return { props: { + breadcrumbTitle, page, translation, }, -- cgit v1.2.3