Skip to content

Commit

Permalink
fix: fixed Lauren comments
Browse files Browse the repository at this point in the history
  • Loading branch information
guidari committed Feb 28, 2024
1 parent fe91fae commit 2b4648a
Show file tree
Hide file tree
Showing 8 changed files with 497 additions and 98 deletions.
6 changes: 5 additions & 1 deletion packages/react/src/components/Tag/DismissibleTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ const DismissibleTag = <T extends React.ElementType>({
});
}

// Removing onClick from the spread operator
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { onClick, ...otherProps } = other;

return (
<Tag<any>
type={type}
Expand All @@ -115,7 +119,7 @@ const DismissibleTag = <T extends React.ElementType>({
disabled={disabled}
className={tagClasses}
id={tagId}
{...other}>
{...otherProps}>
<div className={`${prefix}--interactive--tag-children`}>
{children}
{normalizedSlug}
Expand Down
Loading

0 comments on commit 2b4648a

Please sign in to comment.