Skip to content

Commit

Permalink
Fix: remove onClick props in ToolbarButton component #39
Browse files Browse the repository at this point in the history
  • Loading branch information
luckylooky2 committed Jun 6, 2024
1 parent c7e292f commit 496c166
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ type CommonProps = {
iconOnly?: boolean;
/** Show highlight dot */
isHighlighted?: boolean;
onClick?: () => void;
};

export type ToolbarButtonProps = CommonProps & ButtonHTMLAttributes<HTMLButtonElement>;
Expand All @@ -58,7 +57,6 @@ export const ToolbarButton = forwardRef<HTMLButtonElement, ToolbarButtonProps>(
iconOnly,
'aria-label': ariaLabel,
isHighlighted,
onClick,
...rest
},
ref
Expand All @@ -82,13 +80,11 @@ export const ToolbarButton = forwardRef<HTMLButtonElement, ToolbarButtonProps>(
[styles.contentWithRightIcon]: isOpen !== undefined,
});

console.log(onClick)

const body = (
<button
ref={ref}
className={buttonStyles}
onClick={onClick}
aria-label={getButtonAriaLabel(ariaLabel, tooltip)}
aria-expanded={isOpen}
{...rest}
Expand Down

0 comments on commit 496c166

Please sign in to comment.