aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/recherche
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-21 14:29:19 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-21 14:29:19 +0100
commita367f605b842ad0a71a63025da15ac62ed0364a5 (patch)
treeb15150fbe219d1905b98570ebafb5063d0ade1b1 /src/pages/recherche
parent6092ad0c91e0dc268e5988174db87ded14e6c931 (diff)
chore: add a breadcrumb component
Diffstat (limited to 'src/pages/recherche')
-rw-r--r--src/pages/recherche/index.tsx9
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,
},
};