Skip to content

Commit

Permalink
feat: hide search term
Browse files Browse the repository at this point in the history
  • Loading branch information
He1DAr committed Sep 6, 2024
1 parent 2b4c0d7 commit 52bf78e
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions src/features/search/dropdown/search-results-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,26 @@ function SearchResultHeader({
Tip: filter your search by using keywords.
</Text>
<Flex rowGap={2} columnGap={2.5} flexWrap={'wrap'}>
{Object.keys(advancedSearchConfig).map(key => (
<Text key={key} fontSize={'xs'}>
<Text
display="inline-block"
bg="surfaceHighlight"
borderRadius="md"
color="textSubdued"
py={1.5}
whiteSpace="pre"
textTransform={'uppercase'}
>
{' '}
{key} ({advancedSearchConfig[key].type}){' '}
{Object.keys(advancedSearchConfig).map(key => {
//skip term
if (key === 'TERM:') return null;
return (
<Text key={key} fontSize={'xs'}>
<Text
display="inline-block"
bg="surfaceHighlight"
borderRadius="md"
color="textSubdued"
py={1.5}
whiteSpace="pre"
textTransform={'uppercase'}
>
{' '}
{key} ({advancedSearchConfig[key].type}){' '}
</Text>
</Text>
</Text>
))}
);
})}
</Flex>
</>
);
Expand Down

0 comments on commit 52bf78e

Please sign in to comment.