From a53be74dd404866b13c29fc0b43635c2ba6b49b8 Mon Sep 17 00:00:00 2001 From: Hironori Yamamoto Date: Fri, 24 Mar 2023 09:11:33 +0900 Subject: [PATCH] fix: fix warnings on console --- .../components/HighlightedQuery.tsx | 2 ++ redash-searcher-web/components/Hit.tsx | 27 +++++++++---------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/redash-searcher-web/components/HighlightedQuery.tsx b/redash-searcher-web/components/HighlightedQuery.tsx index 1ee957f..87cebea 100644 --- a/redash-searcher-web/components/HighlightedQuery.tsx +++ b/redash-searcher-web/components/HighlightedQuery.tsx @@ -47,6 +47,7 @@ const HighlightQueryInner = ({ highlight, attribute, hit }: any) => { {isExpanded && ( setIsExpanded(!isExpanded)} style={{ margin: "10px auto", display: "block" }} @@ -55,6 +56,7 @@ const HighlightQueryInner = ({ highlight, attribute, hit }: any) => { {!isExpanded && ( setIsExpanded(!isExpanded)} style={{ margin: "10px auto", display: "block" }} diff --git a/redash-searcher-web/components/Hit.tsx b/redash-searcher-web/components/Hit.tsx index 44b92fd..6df9966 100644 --- a/redash-searcher-web/components/Hit.tsx +++ b/redash-searcher-web/components/Hit.tsx @@ -34,20 +34,19 @@ const Hit: React.FC = ({ hit }: HitProps) => { /> } title={ -
-

- {hit.name} - - Open Redash - -

-
+ <> + {hit.name} + + Open Redash + + } description={hit.description} >