Skip to content

Convert FormSteps component to native TypeScript#6172

Merged
aduth merged 1 commit intomainfrom
aduth-ts-form-steps
Apr 7, 2022
Merged

Convert FormSteps component to native TypeScript#6172
aduth merged 1 commit intomainfrom
aduth-ts-form-steps

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Apr 7, 2022

Why: Preparatory work ahead of upcoming FlowStateMachine v2 work, where it's expected we will want to lift out this component to a shared package to reuse for other steps in the flow.

@aduth aduth requested review from nprimak, peggles2 and solipet April 7, 2022 12:45
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

Choose a reason for hiding this comment

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

Where did FC come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@aduth aduth Apr 7, 2022

Choose a reason for hiding this comment

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

In retrospect, it probably could/should be ComponentType<P>, since I don't think it must be a function component.

But, on the other hand, FC is nice and short, and conventionally-speaking, every component should be a function component anyways 😄

@aduth aduth force-pushed the aduth-ts-form-steps branch 2 times, most recently from 983af79 to 0545e8f Compare April 7, 2022 15:09
**Why**: Preparatory work ahead of upcoming FlowStateMachine v2 work, where it's expected we will want to lift out this component to a shared package to reuse for other steps in the flow.

[skip changelog]
@aduth aduth force-pushed the aduth-ts-form-steps branch from 0545e8f to b6cc6c7 Compare April 7, 2022 15:26
@aduth aduth merged commit 60f2da4 into main Apr 7, 2022
@aduth aduth deleted the aduth-ts-form-steps branch April 7, 2022 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants