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

feat: add event cont for day, month and year #565

Merged
merged 6 commits into from
Aug 2, 2023
Merged

Conversation

edouard-lopez
Copy link
Contributor

@edouard-lopez edouard-lopez commented Jul 27, 2023

Result of contributing session with @Farsen976

  • Added a <EventCount /> component that take a list of events
    • adjust label to 0, 1 or more events
  • Updated <SelectedEvents> and <YearSelector> to use <EventCount/>
event.count.webm

@scraly
Copy link
Owner

scraly commented Jul 28, 2023

@gouz can you review the PR please? :)

page/src/components/EventCount/EventCount.jsx Outdated Show resolved Hide resolved
page/src/components/EventCount/EventCount.jsx Outdated Show resolved Hide resolved
page/src/components/YearSelector/YearSelector.jsx Outdated Show resolved Hide resolved
@scraly
Copy link
Owner

scraly commented Jul 28, 2023

Hi @edouard-lopez and @Farsen976 thanks for your contributions ❤️
We've add some little things to adjust in the review.
Thx! :)

return `${count} events`
const getCountText = (count) => {
if (count) {
const plural = count > 1 ? "s" : ""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const plural = count > 1 ? "s" : "";

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I run prettrier on the file

@@ -0,0 +1,14 @@
const getCountText = (count) => {
const getCountText = (count) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it normal these two lines const getCountText = (count) => {?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, I'm testing GitHub codespace, must I messed up something. If you want to test it, you need to serve the app with to avoir 502 Bad Gateway error:

npm run dev -- --host 0.0.0.0

@scraly
Copy link
Owner

scraly commented Aug 2, 2023

Thanks, for me now it's top! :)
And I'm impressed about the nb of tech events listed this year :)
image

@scraly scraly merged commit 31ff128 into scraly:main Aug 2, 2023
@scraly scraly added the 1.0.3 label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants