Skip to content

Commit

Permalink
🚨 fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineKM committed Aug 8, 2024
1 parent 010e97f commit ec86ea2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-tigers-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kitchn": patch
---

Remove all React warnings from console
21 changes: 14 additions & 7 deletions packages/kitchn/src/components/Fieldset/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,20 @@ const FieldsetFooter = styled.footer<{
: theme.colors.layout.darker};
`;

const FieldsetComponent = styled(({ children, tabs, ...props }: FieldsetProps) => {
return (
<div role={"group"} {...props}>
{children}
</div>
);
})<FieldsetProps>`
const FieldsetComponent = styled(
({
children,
// Prevents the 'tabs' prop from being passed down to the DOM element
tabs: _tabs,
...props
}: FieldsetProps) => {
return (
<div role={"group"} {...props}>
{children}
</div>
);
},
)<FieldsetProps>`
overflow: hidden;
position: relative;
box-sizing: border-box;
Expand Down

0 comments on commit ec86ea2

Please sign in to comment.