From 4a067f8dc9e82f2f5c55902a5299744391758d26 Mon Sep 17 00:00:00 2001 From: Vitor Rangel Date: Fri, 15 Sep 2023 16:12:01 -0300 Subject: [PATCH] Fix searchbar disappearing on language change --- src/components/langDropdown.tsx | 4 +++- src/components/search.tsx | 17 ----------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/src/components/langDropdown.tsx b/src/components/langDropdown.tsx index 50fb4bd..84ba743 100644 --- a/src/components/langDropdown.tsx +++ b/src/components/langDropdown.tsx @@ -19,7 +19,9 @@ export const LangsDropdown = ({ diff --git a/src/components/search.tsx b/src/components/search.tsx index 1573637..e598982 100644 --- a/src/components/search.tsx +++ b/src/components/search.tsx @@ -1,25 +1,8 @@ "use client"; import Script from "next/script"; -/*import { usePathname, useSearchParams } from "next/navigation"; -import { useEffect } from "react";*/ export const Search = () => { - /*const pathname = usePathname(); - const searchParams = useSearchParams();*/ - - /*useEffect(() => { - // @ts-ignore - if (PagefindUI) { - console.log("oi"); - // @ts-ignore - new PagefindUI({ - element: "#search", - showSubResults: true, - }); - } - }, [pathname, searchParams]);*/ - return ( <>