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
Add useTheme-hook and rewrite stuff to function-components #3902
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eikhr
added
review-needed
Pull requests that need review
small-fix
Pull requests that fix something small
chore
Pull requests that does something "boring", yet important, e.g. cleaning up code
labels
May 13, 2023
eikhr
requested review from
PeterJFB,
LudvigHz,
danielyanghansen,
Arashfa0301 and
jonasdeluna
May 13, 2023 20:46
ivarnakken
approved these changes
May 14, 2023
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.
Clean 💯
LudvigHz
reviewed
May 14, 2023
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.
Cool! Just as I commented on #3900 I saw this so good timing 😅.
Just look at using the context, otherwise looks good
eikhr
force-pushed
the
useTheme-util
branch
2 times, most recently
from
May 16, 2023 09:09
0398643
to
9ef622c
Compare
eikhr
added
the
do-not-merge/WIP
Pull requests that are "work in progress", and should not be merged
label
May 19, 2023
None of the ref stuff worked, so I rewrote the form-reset thing by adding a key, and the skipCaptcha thing seems to work without any code in the Captcha component
eikhr
removed
the
do-not-merge/WIP
Pull requests that are "work in progress", and should not be merged
label
May 25, 2023
juniwbjerde
approved these changes
May 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
approved
Pull requests that have been approved
chore
Pull requests that does something "boring", yet important, e.g. cleaning up code
review-needed
Pull requests that need review
small-fix
Pull requests that fix something small
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There were multiple places where we were manually keeping track of the theme using an event listener and component state. I figured we should just have a hook for it to avoid repeating logic. To be able to use the new hook, I had to rewrite a few class-components to functions.
Result
Only functional change should be that Captchas now update to the new theme when changing.
Testing
Resolves ... (either GitHub issue or Linear task)