From ce4a18899f24ba89b63ef743476ec0dbf1999ecf Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 3 Nov 2023 23:03:06 +0100
Subject: refactor(components): rewrite SearchForm component

* remove searchPage prop (the consumer should handle the submit)
* change onSubmit type
* use `useForm` hook to handle the form
---
 src/components/templates/page/page-layout.stories.tsx | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

(limited to 'src/components/templates/page/page-layout.stories.tsx')

diff --git a/src/components/templates/page/page-layout.stories.tsx b/src/components/templates/page/page-layout.stories.tsx
index 7977382..05b47da 100644
--- a/src/components/templates/page/page-layout.stories.tsx
+++ b/src/components/templates/page/page-layout.stories.tsx
@@ -373,14 +373,7 @@ Blog.args = {
   breadcrumb: postsListBreadcrumb,
   title: 'Blog',
   headerMeta: [{ id: 'total', label: 'Total:', value: `${posts.length}` }],
-  children: (
-    <PostsList
-      posts={posts}
-      byYear={true}
-      total={posts.length}
-      searchPage="#"
-    />
-  ),
+  children: <PostsList posts={posts} byYear={true} total={posts.length} />,
   widgets: [
     <LinksListWidget
       heading={
-- 
cgit v1.2.3

