From 87fb386ae58dec6a87d105492e9a730bf0c58c55 Mon Sep 17 00:00:00 2001 From: William Grant Date: Fri, 7 Jun 2024 18:11:44 +1000 Subject: [PATCH] fix: isSubtitle eval in search section header moved to parent --- ts/components/search/SearchResults.tsx | 28 ++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/ts/components/search/SearchResults.tsx b/ts/components/search/SearchResults.tsx index 77904b40f..f86d21124 100644 --- a/ts/components/search/SearchResults.tsx +++ b/ts/components/search/SearchResults.tsx @@ -41,14 +41,17 @@ const NoResults = styled.div` text-align: center; `; -const SectionHeader = ({ title, style }: { title: string; style: CSSProperties }) => { +const SectionHeader = ({ + title, + isSubtitle, + style, +}: { + title: string; + isSubtitle: boolean; + style: CSSProperties; +}) => { return ( - + {title} ); @@ -75,7 +78,16 @@ const VirtualizedList = () => { return null; } if (isString(row)) { - return ; + return ( + + ); } if (isContact(row)) { return (