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: converted index.js to index.ts for OverflowMenu #16494

Merged
merged 2 commits into from
May 21, 2024

Conversation

Gururajj77
Copy link
Contributor

@Gururajj77 Gururajj77 commented May 17, 2024

Main issue: #16154
Closes #16444
Closes #16447 as part of exporting props for Overflowmenu

Changed from Index.js to Index.tsx as part of typescript adoption.

Changelog

New

  • New index.tsx file

Changed

  • Asserted OverflowMenuComponent as typeof React.Component for type assertion
  • Changed renderIcon's type as ComponentType<IconProps>
  • Broadened Offset interface to accept null and undefined matching PropType assertion
  • Added IconProps type as part of renderIcon's assertion
  • made aria-label as option in the main interface
  • exported OverflowMenuProps

Testing / Reviewing

  • Run the deploy preview with overflowmenu and check the functionality to be intact
  • This code might have a breaking change, if so please let me know.

@Gururajj77 Gururajj77 requested a review from a team as a code owner May 17, 2024 11:59
Copy link

netlify bot commented May 17, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7f3f69c
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/664746b39235660008dd3fe5
😎 Deploy Preview https://deploy-preview-16494--v11-carbon-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 configuration.

Copy link

netlify bot commented May 17, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5d4b559
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/664747afd22d5500087ff99b
😎 Deploy Preview https://deploy-preview-16494--v11-carbon-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 configuration.

@guidari guidari added this pull request to the merge queue May 21, 2024
Merged via the queue into carbon-design-system:main with commit 96ef1a3 May 21, 2024
20 checks passed
@carbon-automation
Copy link
Contributor

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

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.

Convert index.js to index.ts for OverflowMenu
5 participants