From 4c74465cbdadbf69fe2b75491e4dee059d83eeb6 Mon Sep 17 00:00:00 2001 From: souvikjs01 Date: Sat, 7 Dec 2024 15:59:22 +0530 Subject: [PATCH] fix: proper search-bar view and allignment --- components/AlgoliaSearch.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/AlgoliaSearch.tsx b/components/AlgoliaSearch.tsx index a7d3604fafb7..afcc7fe10f2a 100644 --- a/components/AlgoliaSearch.tsx +++ b/components/AlgoliaSearch.tsx @@ -313,6 +313,9 @@ export function SearchButton({ children, indexName = INDEX_NAME, ...props }: ISe if (typeof children === 'function') { setChildren(children({ actionKey })); } + else { + setChildren(children); + } }, []); return (