Skip to content

Commit

Permalink
fix(search-input): add hits keys
Browse files Browse the repository at this point in the history
  • Loading branch information
RobsonOlv committed Nov 8, 2022
1 parent 7e82f42 commit 6278f99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/components/search-input/results-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ const Hit = ({ hit, setSearchStateActive }: HitProps) => {
<IconCaret direction="right" sx={styles.hitBreadCrumbArrow} />
)}
{breadCrumbs.map((filter: string, index: number) => (
<Flex sx={styles.alignCenter}>
<Text sx={styles.hitBreadCrumb} key={`${filter}${index}`}>
{filter}
</Text>
<Flex sx={styles.alignCenter} key={`${filter}${index}`}>
<Text sx={styles.hitBreadCrumb}>{filter}</Text>
{index < breadCrumbs.length - 1 ? (
<IconCaret direction="right" sx={styles.hitBreadCrumbArrow} />
) : null}
Expand Down
2 changes: 1 addition & 1 deletion src/components/search-input/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const container: SxStyleProp = {
width: '544px',
border: '1px solid #B9B9B9',
borderRadius: '0px 0px 4px 4px',
top: 'calc(5rem - 1px)',
top: 'calc(5rem - 18px)',
background: '#FFFFFF',
}

Expand Down

0 comments on commit 6278f99

Please sign in to comment.