diff --git a/src/components/Search/SearchDialog.tsx b/src/components/Search/SearchDialog.tsx index c6f3534..6bec159 100644 --- a/src/components/Search/SearchDialog.tsx +++ b/src/components/Search/SearchDialog.tsx @@ -74,6 +74,17 @@ function CustomHit({ hit, lang }: { hit: ArticleHit; lang: Locale }) { className="mb-5 inline-flex w-full rounded-xl border-[1px] bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2" >
+ {hit.tags.length > 0 && ( +
+ {hit.tags.map((tag) => { + return ( + + {tag} + + ) + })} +
+ )} -
- {hit.tags?.map((tag) => { - return ( - - {tag} - - ) - })} -
)