Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(Popover): add typescript types #13233

Merged
merged 4 commits into from
Mar 1, 2023

Conversation

lewandom
Copy link
Contributor

Closes #13230

Add TypeScript support to Popover and PopoverContent components.

Changelog

New

  • added PopoverProps and PopoverContentProps interfaces

Changed

  • added TypeScript types to Popover and PopoverContent
  • added TypeScript types to useMergedRefs helper function

Testing / Reviewing

The Popover component imports for the storybook should be valid and rendering. In a TypeScript environment, you should be able to import and reference the Popover component and its typings (PopoverProps).

@lewandom lewandom requested a review from a team as a code owner February 24, 2023 19:48
@netlify
Copy link

netlify bot commented Feb 24, 2023

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 17220a5
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/63ff8da4972eb900082daeb8
😎 Deploy Preview https://deploy-preview-13233--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Collaborator

@francinelucca francinelucca left a comment

Choose a reason for hiding this comment

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

LGTM!

@netlify
Copy link

netlify bot commented Mar 1, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 17220a5
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/63ff8da4cd28b20008f0d824
😎 Deploy Preview https://deploy-preview-13233--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@kodiakhq kodiakhq bot merged commit ab9cd8c into carbon-design-system:main Mar 1, 2023
@carbon-bot
Copy link
Contributor

Hey there! v11.24.0 was just released that references this issue/PR.

@lewandom lewandom deleted the typescript-popover branch March 7, 2023 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add TypeScript types to Popover, PopoverContent
4 participants