-
Notifications
You must be signed in to change notification settings - Fork 3
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
added rainbows during pride month #117
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.
This PR has no description. I remember that the activities page would be full of rainbows, but I don't see any rainbows. I locally already set let pride = day.getMonth() == 3
, as we are in month 3. What am I doing wrong?
I get this error in the console:
Warning: Can't call setState on a component that is not yet mounted.
let day = new Date(); | ||
let pride = day.getMonth() == 5; | ||
|
||
let className = "activity"; | ||
if (props.active) { | ||
className += " active"; | ||
if (pride) { | ||
className += " activeRainbow"; | ||
} | ||
} | ||
|
||
if (pride) { | ||
className += " rainbow"; |
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.
Could you add some comments on what the effects are of applying the classnames? We know, and the code reads fine, but it might help for other people to say something like "If we are in pride month, the activities should gain some rainbow effects or other pride related thigns."
I'm going to close this issue for staleness reasons, feel free to reopen this PR if there's updates for it. |
No description provided.