-
Notifications
You must be signed in to change notification settings - Fork 1
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
switch to using react hooks and functional components #17
Conversation
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.
Just needs one small fix besides that looks good to me, good work :)
<h2> | ||
{isEventsPage ? 'View our latest events here!' : "We are DCU's Computer Networking Society"} | ||
</h2> | ||
<ImageGrid images={images} /> |
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.
This needs to be changed to check if images have been passed. Gives an error currently on /events.
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.
Also appears as if committee photos aren't loading at all?
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.
fixed i had moved the image check inside the component but forgot to return an empty component
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.
committee is working locally for me any console error?
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.
No errors, just not appearing with their photos, only rb logo
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 Added a fall back if photos isn't specified to fall back to brick, is it just appearing for blank profiles or all?
This Pr is rather large because react hooks a quite different but they result in far less boilerplate and more easily understood code.
As part of this PR, I also removed the style of map and push in favour of pure maps as this is far simpler and more efficient.
This PR closes #16 #14 #15 #13 #11 #9 #8 #7 #6 #5 #4 #3 and #1
It also Makes it possible to stop using stock images ala #12
and fixes some of the issues listed in #10