-
Notifications
You must be signed in to change notification settings - Fork 140
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
feat(CoachmarkStack): convert to .tsx #5234
Conversation
✅ Deploy Preview for carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
packages/ibm-products/src/components/CoachmarkStack/CoachmarkStack.tsx
Outdated
Show resolved
Hide resolved
1a208ca
to
88a49cc
Compare
* | ||
* @see {@link MEDIA_PROP_TYPE}. | ||
*/ | ||
media: Media; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be updated now!
88a49cc
to
6479e5c
Compare
6479e5c
to
bc261d9
Compare
@@ -62,6 +139,24 @@ export let CoachmarkStackHome = forwardRef( | |||
); | |||
} | |||
|
|||
function renderNavLink(index, label, ref) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
bc261d9
to
dfa8fa3
Compare
ad6821c
Closes #4491
Related #5097
This PR converts
CoachmarkStack
andCoachmarkStackHome
to TypeScriptWhat did you change?
How did you test and verify your work?
storybook build and type checks