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

feat(CoachmarkStack): convert to .tsx #5234

Merged

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented May 15, 2024

Closes #4491
Related #5097

This PR converts CoachmarkStack and CoachmarkStackHome to TypeScript

What did you change?

  • file extension
  • TS interface

How did you test and verify your work?

storybook build and type checks

@emyarod emyarod requested a review from a team as a code owner May 15, 2024 15:20
@emyarod emyarod requested review from kennylam and ariellalgilmore and removed request for a team May 15, 2024 15:20
Copy link

netlify bot commented May 15, 2024

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit dfa8fa3
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/669e924d03fb18000846b057
😎 Deploy Preview https://deploy-preview-5234--carbon-for-ibm-products.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.

@emyarod emyarod marked this pull request as draft May 15, 2024 15:42
@emyarod emyarod marked this pull request as ready for review May 15, 2024 15:47
Copy link
Member

@makafsal makafsal left a comment

Choose a reason for hiding this comment

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

Looks good.

@emyarod emyarod force-pushed the 4232-feat/CoachmarkStack-ts branch from 1a208ca to 88a49cc Compare May 22, 2024 14:20
@emyarod emyarod requested a review from makafsal May 22, 2024 14:21
*
* @see {@link MEDIA_PROP_TYPE}.
*/
media: Media;
Copy link
Member

Choose a reason for hiding this comment

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

As per PropType media prop is optional.

Copy link
Member Author

Choose a reason for hiding this comment

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

should be updated now!

*
* @see {@link MEDIA_PROP_TYPE}.
*/
media: Media;
Copy link
Member

Choose a reason for hiding this comment

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

Here also media is optional.

Copy link
Member Author

Choose a reason for hiding this comment

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

should be updated now!

@emyarod emyarod force-pushed the 4232-feat/CoachmarkStack-ts branch from 88a49cc to 6479e5c Compare June 7, 2024 16:36
@emyarod emyarod requested a review from makafsal June 10, 2024 17:29
@emyarod emyarod force-pushed the 4232-feat/CoachmarkStack-ts branch from 6479e5c to bc261d9 Compare June 12, 2024 18:25
@@ -62,6 +139,24 @@ export let CoachmarkStackHome = forwardRef(
);
}

function renderNavLink(index, label, ref) {
Copy link
Member

Choose a reason for hiding this comment

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

In the previous code ref is optional ref = null, can you change it like that?

Copy link
Member Author

Choose a reason for hiding this comment

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

it was already set to ref ?? null a few lines below but I've reverted the change

@emyarod emyarod force-pushed the 4232-feat/CoachmarkStack-ts branch from bc261d9 to dfa8fa3 Compare July 22, 2024 17:09
@davidmenendez davidmenendez added this pull request to the merge queue Aug 6, 2024
Merged via the queue into carbon-design-system:main with commit ad6821c Aug 6, 2024
20 checks passed
@emyarod emyarod deleted the 4232-feat/CoachmarkStack-ts branch August 28, 2024 14:25
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 CoachmarkStack
4 participants