-
-
Notifications
You must be signed in to change notification settings - Fork 408
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
Conversation
@gouz can you review the PR please? :) |
Hi @edouard-lopez and @Farsen976 thanks for your contributions ❤️ |
return `${count} events` | ||
const getCountText = (count) => { | ||
if (count) { | ||
const plural = count > 1 ? "s" : "" |
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.
const plural = count > 1 ? "s" : "";
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 run prettrier on the file
@@ -0,0 +1,14 @@ | |||
const getCountText = (count) => { | |||
const getCountText = (count) => { |
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.
Is it normal these two lines const getCountText = (count) => {
?
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.
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
Result of contributing session with @Farsen976
<EventCount />
component that take a list of events<SelectedEvents>
and<YearSelector>
to use<EventCount/>
event.count.webm