-
Notifications
You must be signed in to change notification settings - Fork 10
fix(#2408): form stepper docs #362
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
Conversation
✅ Deploy Preview for abgov-ui-component-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
vanessatran-ddi
left a comment
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.
d546650 to
782db25
Compare
|
@vanessatran-ddi On hold....will resume once this PR GovAlta/ui-components#2702 gets merged to alpha |
782db25 to
2a56f2f
Compare
# Conflicts: # package-lock.json # package.json
| "incomplete" | ||
| "not-started" | ||
| ]) | ||
| function setPage(page: number) { |
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.
The function setPage here is different from the function setStatusPage at line 20. Therefore when I copy the code snippet of React (version 6), and play it, the step 4 is updated to be completed when I navigate to step 4 and navigate back to step 3, while on the sandbox it doesn't show that. (Step 4 remains not-started even we navigate to back and forth). I think we should update the code snippet to make it synced with the code we use inside the Example sandbox.
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.
The difference is:
setStatus((prevStatus) =>
prevStatus.map((_, index) => (index < page ? "complete" : "incomplete"))
);
while the setStatusStep line 20 doesn't have 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.
PR has been updated.

Story: GovAlta/ui-components#2408
UI PR: GovAlta/ui-components#2702