Skip to content

Commit

Permalink
fix(button.tsx): Adding back displayName (#890)
Browse files Browse the repository at this point in the history
Co-authored-by: Brayden Lopez <brayden@onesignal.com>
  • Loading branch information
headdetect and brayden-onesignal authored Jul 31, 2023
1 parent 942735e commit 8e24575
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ const ButtonComponentFn = <T extends ElementType = 'button'>(
);
};

ButtonComponentFn.displayName = 'Button';

const ButtonComponent = genericForwardRef(ButtonComponentFn);

export const Button = Object.assign(ButtonComponent, {
Expand Down

1 comment on commit 8e24575

@vercel
Copy link

@vercel vercel bot commented on 8e24575 Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.