Skip to content

Commit

Permalink
chore: get rid of unrecognized prop on DOM node error on a syled comp…
Browse files Browse the repository at this point in the history
  • Loading branch information
a-hariti committed Feb 28, 2024
1 parent 1b65c7a commit 5d31da1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/expandable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ type ExpandedProps = {
isExpanded: boolean;
};

const ExpandedIndicator = styled(ArrowDown)<ExpandedProps>`
const ExpandedIndicator = styled(({isExpanded: _, ...props}) => (
<ArrowDown {...props} />
))<ExpandedProps>`
user-select: none;
transition: transform 200ms ease-in-out;
transform: rotate(${p => (p.isExpanded ? '180deg' : '0')});
Expand Down

0 comments on commit 5d31da1

Please sign in to comment.