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(CreateFullPageStep): add TypeScript types #5169

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

IgnacioBecerra
Copy link
Contributor

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 props

How did you test and verify your work?

ran tests and builds locally

@IgnacioBecerra IgnacioBecerra requested a review from a team as a code owner May 13, 2024 23:36
@IgnacioBecerra IgnacioBecerra requested review from davidmenendez and emyarod and removed request for a team May 13, 2024 23:36
Copy link

netlify bot commented May 13, 2024

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

Name Link
🔨 Latest commit 21d4f0f
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/6657b65ee1046f0008b03284
😎 Deploy Preview https://deploy-preview-5169--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 previously approved these changes May 14, 2024
Copy link
Member

@emyarod emyarod 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 to me!

kennylam
kennylam previously approved these changes May 14, 2024
Copy link
Member

@kennylam kennylam left a comment

Choose a reason for hiding this comment

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

LGTM!

@davidmenendez davidmenendez dismissed stale reviews from kennylam and emyarod via a0ea84d May 14, 2024 18:52
…PageStep.tsx

Co-authored-by: Matt Gallo <mdgallo@us.ibm.com>
davidmenendez
davidmenendez previously approved these changes May 14, 2024
* @param {boolean | undefined} useResetCreateComponent.invalid
* @param {boolean | undefined} useResetCreateComponent.shouldIncludeStep
* @param {string | undefined } useResetCreateComponent.secondaryLabel
* @param {string | node} useResetCreateComponent.title
*/
Copy link
Contributor Author

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.

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 CreateFullPageStep
6 participants