-
-
Notifications
You must be signed in to change notification settings - Fork 35.8k
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
fix(client): refactor formfields #39552
fix(client): refactor formfields #39552
Conversation
Since we're refactoring, I think it's worth renaming things to improve clarity a bit. For instance, passing |
If you think this is clearer, then I will do this. It is just, |
Good point, So, the ideal solution is probably to use a map from |
@ojeytonwilliams I have edited my previous comment, as I accidentally said the opposite of what I meant by the I prefer the property of the current This is more work, and risks more confusion than not, but what if we:
|
I think passing two arrays would just make things needlessly messy. What you have now seems good, but I'd go back to |
Thanks for sorting that out @SKY020. There're a few minor things we can do to clean it up further, but I'll wait until Randy has taken another look. Just in case he spots something more substantial. |
@SKY020 @ojeytonwilliams Looks good now. I like the fact that you got rid of the |
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.
Looking good! I only found a couple of minor things:
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.
LGTM 👍
Thanks, Shaun, everything is working perfectly.
Could you rebase this into two commits? One removing the redundant code and the other with the form refactor.
Seeing as we're already reviewing it, I figured it was ready for review! |
bfd5ed4
to
3cf9094
Compare
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
d31b831
to
3a4400d
Compare
Hey Shaun, I've removed the merge commit and removed the comments from the first commit. Let me know if everything still looks good. |
Thanks, for doing that, Oliver. Everything looks ready to go. |
Cool, thanks for verifying. @ahmadabdolsaheb could you give this a quick sanity check? |
Checklist:
Update index.md
)master
branch of freeCodeCamp.Closes #39520