summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-24 16:47:48 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-24 16:47:48 +0200
commit0b63568afd4bafb83164976e51a23d3c379a8580 (patch)
tree50959ca19699886c255ba995dd5d687bd5e2dab3 /src
parent1e982fb02a9967e0efdc76c93a44798a9f2dcb43 (diff)
chore: add a search form on 404 page
Diffstat (limited to 'src')
-rw-r--r--src/pages/404.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pages/404.tsx b/src/pages/404.tsx
index fd7187a..c3a5cac 100644
--- a/src/pages/404.tsx
+++ b/src/pages/404.tsx
@@ -1,4 +1,5 @@
import Link from '@components/atoms/links/link';
+import SearchForm from '@components/organisms/forms/search-form';
import LinksListWidget from '@components/organisms/widgets/links-list-widget';
import { getLayout } from '@components/templates/layout/layout';
import PageLayout from '@components/templates/page/page-layout';
@@ -116,6 +117,14 @@ const Error404Page: NextPageWithLayout<Error404PageProps> = ({
]}
>
{body}
+ <p>
+ {intl.formatMessage({
+ defaultMessage: 'You can also try a search:',
+ description: 'Error404Page: try a search message',
+ id: 'XKy7rx',
+ })}
+ </p>
+ <SearchForm hideLabel={true} searchPage="/recherche/" />
</PageLayout>
</>
);