Skip to content

Commit

Permalink
fix: match search result area badge to climb result (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
btmccord authored Jan 13, 2024
1 parent cbac957 commit 2bb8e23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/search/templates/ClimbResultXSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ interface AreaItemProps {
export const AreaItem = ({ item }: AreaItemProps): JSX.Element => {
const { pathTokens, highlightIndices, name } = item
return (
<div className='py-4 text-xs flex flex-col gap-2'>
<div className='py-4 text-xs flex flex-row justify-between gap-2'>
{pathTokens.length === 1 &&
<>
<div className='badge bg-area-cue bg-opacity-60 badge-sm'>country</div>
<div className='badge badge-outline badge-lg'>{name}</div>
<div className='rounded-lg p-1 px-3 bg-area-cue bg-opacity-40 text-xs mr-2 self-center h-fit'>country</div>
</>}
{pathTokens.length > 1 &&
<>
<div className='badge bg-area-cue badge-sm'>area</div>
<TextOnlyCrumbs pathTokens={pathTokens} highlightIndices={highlightIndices} />
<div className='rounded-lg p-1 px-3 bg-area-cue text-base-100 text-xs mr-2 self-center h-fit'>area</div>
</>}
</div>
)
Expand Down

1 comment on commit 2bb8e23

@vercel
Copy link

@vercel vercel bot commented on 2bb8e23 Jan 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.