Skip to content

Commit

Permalink
Merge pull request #677 from gympass/refactor-remove_icon_warnings
Browse files Browse the repository at this point in the history
🚀refactor: remove some warnings during development
  • Loading branch information
matheushdsbr authored Aug 24, 2023
2 parents 37d07a5 + 3a62b45 commit 5188ff0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/doc/content/components/icons/icons-web.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Remembering that icon groups are `objects` you can work with.
<FlagsIcons.FlagBrazil width={26} height={26} />

<Box d="flex" gap="small">
{Object.entries(FlagsIcons).map(([_, Component]) => (
<Component width={26} height={26} />
{Object.entries(FlagsIcons).map(([name, Component]) => (
<Component width={26} height={26} key={name} />
))}
</Box>
</Box>
Expand Down
6 changes: 3 additions & 3 deletions packages/doc/src/components/Navigation/Navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ const StyledList = styled(MDXElements.Ul)`
width: 100%;
`;

const ChevronContainer = styled.div.attrs({
rotation: props => (props.isOpen ? 180 : 0),
})`
const ChevronContainer = styled.div.attrs(props => ({
rotation: props.isOpen ? 180 : 0,
}))`
> svg {
width: 0.6rem;
transition: all 200ms ease-out;
Expand Down

0 comments on commit 5188ff0

Please sign in to comment.