From f5fe2cbcc389a0ff358db1bfab9e449b28ddaa9c Mon Sep 17 00:00:00 2001 From: Amir Kakavand Date: Fri, 9 Aug 2024 16:16:46 +0330 Subject: [PATCH] modified header onClick event --- app/components/Header.tsx | 4 +++- app/page.tsx | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/components/Header.tsx b/app/components/Header.tsx index eb92270..2e54142 100644 --- a/app/components/Header.tsx +++ b/app/components/Header.tsx @@ -4,17 +4,19 @@ import { IoIosSearch } from "react-icons/io"; interface IHeaderProps { name: string; + setPageNo: Dispatch>; setName: Dispatch>; setSearchQuery: Dispatch>; } -const Header = ({ name, setName, setSearchQuery }: IHeaderProps) => { +const Header = ({ name, setPageNo, setName, setSearchQuery }: IHeaderProps) => { const [mouseHover, setMouseHover] = useState(false); return (