-
Notifications
You must be signed in to change notification settings - Fork 117
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(CreateFullPageStep): add TypeScript types #5169
base: main
Are you sure you want to change the base?
refactor(CreateFullPageStep): add TypeScript types #5169
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 to me!
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.
LGTM!
packages/ibm-products/src/components/CreateFullPage/CreateFullPageStep.tsx
Outdated
Show resolved
Hide resolved
…PageStep.tsx Co-authored-by: Matt Gallo <mdgallo@us.ibm.com>
packages/ibm-products/src/components/CreateFullPage/CreateFullPageStep.tsx
Outdated
Show resolved
Hide resolved
packages/ibm-products/src/components/CreateFullPage/CreateFullPageStep.tsx
Outdated
Show resolved
Hide resolved
packages/ibm-products/src/components/CreateFullPage/CreateFullPageStep.tsx
Outdated
Show resolved
Hide resolved
packages/ibm-products/src/components/CreateFullPage/CreateFullPageStep.tsx
Outdated
Show resolved
Hide resolved
packages/ibm-products/src/components/CreateFullPage/CreateFullPageStep.tsx
Outdated
Show resolved
Hide resolved
packages/ibm-products/src/components/CreateFullPage/CreateFullPageStep.tsx
Outdated
Show resolved
Hide resolved
* @param {boolean | undefined} useResetCreateComponent.invalid | ||
* @param {boolean | undefined} useResetCreateComponent.shouldIncludeStep | ||
* @param {string | undefined } useResetCreateComponent.secondaryLabel | ||
* @param {string | node} useResetCreateComponent.title | ||
*/ |
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.
@makafsal Due to CreateFullPageStep.tsx
having these props be optional, when they are passed into this function they can be considered either their type, or undefined, if they are not passed in. However this function "requires" the props to not be undefined to "work", but in reality there are multiple checks that include the required props anyway. To not have to refactor this file within this same PR, this is a temporary solution to the problem.
Closes #4512
This PR changes the CreateFullPageStep file and component to use typescript
What did you change?
The file to be
tsx
and used types for the propsHow did you test and verify your work?
ran tests and builds locally