From c3646852d2b51a48b7c79f886a1791ce2fb5b9c7 Mon Sep 17 00:00:00 2001
From: amanbhoria <51995611+amanbhoria@users.noreply.github.com>
Date: Fri, 8 Nov 2024 02:38:31 +0530
Subject: [PATCH 1/4] fixed algolia search icon on homepage
---
components/navigation/NavBar.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/navigation/NavBar.tsx b/components/navigation/NavBar.tsx
index d0fd2ca6fa02..222ba3a7e782 100644
--- a/components/navigation/NavBar.tsx
+++ b/components/navigation/NavBar.tsx
@@ -223,7 +223,7 @@ export default function NavBar({ className = '', hideLogo = false }: NavBarProps
className='mr-2 flex items-center space-x-2 rounded-md p-2 text-left text-gray-400 transition duration-150 ease-in-out hover:bg-gray-100 hover:text-gray-500 focus:bg-gray-100 focus:text-gray-500 focus:outline-none'
aria-label='Open Search'
>
-
+ {() => }
{/* // Language Picker Component */}
From 679123425eab742982a18c55eaea41c023abcc11 Mon Sep 17 00:00:00 2001
From: amanbhoria <51995611+amanbhoria@users.noreply.github.com>
Date: Sun, 10 Nov 2024 20:03:06 +0530
Subject: [PATCH 2/4] initial commit
---
components/AlgoliaSearch.tsx | 4 +---
components/navigation/NavBar.tsx | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/components/AlgoliaSearch.tsx b/components/AlgoliaSearch.tsx
index a7d3604fafb7..b2cc9f85694b 100644
--- a/components/AlgoliaSearch.tsx
+++ b/components/AlgoliaSearch.tsx
@@ -310,9 +310,7 @@ export function SearchButton({ children, indexName = INDEX_NAME, ...props }: ISe
}, [onInput, searchButtonRef]);
useEffect(() => {
- if (typeof children === 'function') {
- setChildren(children({ actionKey }));
- }
+ setChildren(typeof children === 'function' ? children({ actionKey }) : children);
}, []);
return (
diff --git a/components/navigation/NavBar.tsx b/components/navigation/NavBar.tsx
index 222ba3a7e782..2c1f3a864e38 100644
--- a/components/navigation/NavBar.tsx
+++ b/components/navigation/NavBar.tsx
@@ -163,7 +163,7 @@ export default function NavBar({ className = '', hideLogo = false }: NavBarProps
className='flex items-center space-x-2 rounded-md p-2 text-left text-gray-400 transition duration-150 ease-in-out hover:bg-gray-100 hover:text-gray-500 focus:bg-gray-100 focus:text-gray-500 focus:outline-none'
aria-label='Open Search'
>
-
+ {}