Skip to content

Type/Props Change PR: Send 'toPreviousStep' Down as A Prop#9852

Merged
charleyf merged 2 commits intomainfrom
charley/revise-document-capture-review-step-props
Jan 4, 2024
Merged

Type/Props Change PR: Send 'toPreviousStep' Down as A Prop#9852
charleyf merged 2 commits intomainfrom
charley/revise-document-capture-review-step-props

Conversation

@charleyf
Copy link
Contributor

@charleyf charleyf commented Jan 4, 2024

🛠 Summary of changes

This is a props change in response to Andrew's comment here. We expect the toPreviousStep prop to be available to steps even if they're not using it. This PR makes that true, by making toPreviousStep available to the review step.

Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

I hadn't realized this wasn't a proper "step" rendered by FormSteps and instead a subcomponent of the ReviewIssuesStep. I don't have quite as much problem with the original approach with that in mind, though I think it's also fine to have a 1-to-1 with this expecting to receive all of the props that a step receives.

@charleyf charleyf merged commit dbc6877 into main Jan 4, 2024
@charleyf charleyf deleted the charley/revise-document-capture-review-step-props branch January 4, 2024 16:30
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