Skip to content
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

Closed
wants to merge 4 commits into from
Closed

Conversation

lukeksnceuoibceiofegofiqw

No description provided.

src/components/Activity.jsx Outdated Show resolved Hide resolved
src/index.css Outdated Show resolved Hide resolved
Copy link
Member

@SilasPeters SilasPeters left a 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.

Comment on lines +67 to +79
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";
Copy link
Member

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."

@SilasPeters SilasPeters added the enhancement Proposes (changes to) a feature label Mar 22, 2024
@stickyPiston
Copy link
Member

I'm going to close this issue for staleness reasons, feel free to reopen this PR if there's updates for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Proposes (changes to) a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants