-
Notifications
You must be signed in to change notification settings - Fork 9
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
adjustment: refactor AppJs to Hooks #58
Conversation
client/src/components/App.js
Outdated
}; | ||
|
||
setLoginAttention = (value) => { | ||
this.setState({ loginAttention: value }); | ||
const toggleLoginAttention = (value) => { |
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.
i dont think we need updateUser
or toggleLoginAttention
anymore, since they're equivalent to setUser
and setLoginAttention
respectively
can we delete these functions, and directly pass setUser
and setLoginAttention
to the components below?
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.
Oki, understood.
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.
Currently has errors, trying to aswell convert affected components now to Hooks.
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.
o did i merge too soon LOL
package-lock.json
Outdated
@@ -1,8 +1,12797 @@ | |||
{ | |||
"name": "gtsosu", | |||
"version": "1.0.0", | |||
"lockfileVersion": 1, | |||
"lockfileVersion": 2, |
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.
can you un-commit package-lock.json for now? we talked about this in the dev channel, and i wanna get our node versioning etc. sorted out and then i'll update package-lock in a separate commit
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.
nice, thanks
Regarding #37 to refactor current state of the site, to migrate from Class Component based to use React Hooks
Files Changed: