Skip to content

Commit

Permalink
fix(web): pass-icon-prop-to-base-item-in-dropdown-select
Browse files Browse the repository at this point in the history
  • Loading branch information
Harman-singh-waraich committed Feb 29, 2024
1 parent 9f3ede7 commit 8900d76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/dropdown/select/item-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ const ItemContainer: React.FC<IItemContainer> = ({
onChange,
}) => (
<BaseItemContainer>
{items.map(({ text, Icon, dot, value }, i) => (
{items.map(({ text, Icon, icon, dot, value }, i) => (
<StyledItem
key={i}
tabIndex={0}
selected={value === selected}
onClick={() => onChange(value)}
{...{ text, dot, Icon }}
{...{ text, dot, Icon, icon }}
/>
))}
</BaseItemContainer>
Expand Down

0 comments on commit 8900d76

Please sign in to comment.