diff options
Diffstat (limited to 'src/pages/recherche')
| -rw-r--r-- | src/pages/recherche/index.tsx | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/src/pages/recherche/index.tsx b/src/pages/recherche/index.tsx index 6de5816..b39d3f9 100644 --- a/src/pages/recherche/index.tsx +++ b/src/pages/recherche/index.tsx @@ -1,5 +1,5 @@  import { Button } from '@components/Buttons'; -import Layout from '@components/Layouts/Layout'; +import { getLayout } from '@components/Layouts/Layout';  import PostsList from '@components/PostsList/PostsList';  import { config } from '@config/website';  import { t } from '@lingui/macro'; @@ -10,7 +10,7 @@ import { loadTranslation } from '@utils/helpers/i18n';  import { GetStaticProps } from 'next';  import Head from 'next/head';  import { useRouter } from 'next/router'; -import { ReactElement, useEffect, useState } from 'react'; +import { useEffect, useState } from 'react';  import useSWRInfinite from 'swr/infinite';  const Search: NextPageWithLayout = () => { @@ -92,7 +92,7 @@ const Search: NextPageWithLayout = () => {    );  }; -Search.getLayout = (page: ReactElement) => <Layout>{page}</Layout>; +Search.getLayout = getLayout;  export const getStaticProps: GetStaticProps = async (context) => {    const translation = await loadTranslation( @@ -100,8 +100,11 @@ export const getStaticProps: GetStaticProps = async (context) => {      process.env.NODE_ENV === 'production'    ); +  const breadcrumbTitle = t`Search`; +    return {      props: { +      breadcrumbTitle,        translation,      },    }; | 
