-
Notifications
You must be signed in to change notification settings - Fork 5
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
Set review stepper state to complete after user submits registration #1162
Conversation
@@ -71,6 +72,11 @@ const ReviewSubmit: React.FC<ReviewSubmitProps> = ({ | |||
// eslint-disable-next-line react-hooks/exhaustive-deps | |||
}, [isSent]); | |||
|
|||
// Update the review step status to complete if the user submits a registration. | |||
if (isTestNetSubmitted || isMainNetSubmitted) { |
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 stepper label color doesn't immediately update after the registration is submitted. To fix this, I think react-query
will have to be used which would require some refactoring that should be handled in a separate story.
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.
Makes sense to me, I just had one question about the setStepStatus
method.
@@ -71,6 +72,11 @@ const ReviewSubmit: React.FC<ReviewSubmitProps> = ({ | |||
// eslint-disable-next-line react-hooks/exhaustive-deps | |||
}, [isSent]); | |||
|
|||
// Update the review step status to complete if the user submits a registration. | |||
if (isTestNetSubmitted || isMainNetSubmitted) { | |||
dispatch(setStepStatus({ step: 6, status: LSTATUS.COMPLETE })); |
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.
What is the significance of the 6? Is it the step 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.
Yes, 6 is the review step number. There are constants for steps 1-5. I was unable to determine why 6 was excluded, since 6 is listed as a step number a few times in the code. However, I did notice some cases where the constants weren't used for other step numbers, so a story updating this should be added.
Scope of changes
Sets the stepper status to complete after a user submits the registration form.
Type of change
Acceptance criteria
https://www.awesomescreenshot.com/video/25370460?key=2b8264fa9105338e9f47cf1ebeb01572
Author checklist
Reviewer(s) checklist