all repos — caroster @ dcc5aca696a7224dc83660d34506257db74c7083

[Octree] Group carpool to your event https://caroster.io

🐛 add a noDat Section in dashboard
Hadrien Froger e3k8y9i0k3s8o9x4@octreea17.slack.com
Tue, 21 Jul 2020 12:11:50 +0000
commit

dcc5aca696a7224dc83660d34506257db74c7083

parent

ddd7c0579c68d656139afa290e2fa11681e23a6d

2 files changed, 14 insertions(+), 3 deletions(-)

jump to
M app/src/containers/DashboardEvents/index.jsapp/src/containers/DashboardEvents/index.js

@@ -18,14 +18,23 @@ const {t} = useTranslation();

return ( <Grid container className={classes.root} spacing={4} xs={'auto'}> - {futureEvents.length + noDateEvents.length > 0 && ( + {futureEvents.length > 0 && ( <> <Section> {t('dashboard.sections.future', { - count: futureEvents.length + noDateEvents.length, + count: futureEvents.length, })} </Section> {cardsForEvents(futureEvents)} + </> + )} + {noDateEvents.length > 0 && ( + <> + <Section> + {t('dashboard.sections.noDate', { + count: noDateEvents.length, + })} + </Section> {cardsForEvents(noDateEvents)} </> )}
M app/src/locales/fr.jsonapp/src/locales/fr.json

@@ -114,7 +114,9 @@ "sections": {

"future": "Évènement à venir", "future_plural": "Évènements à venir", "past": "Évènement passé", - "past_plural": "Évènements passés" + "past_plural": "Évènements passés", + "noDate": "Évènement sans date", + "noDate_plural": "Évènements sans date" }, "noEvent": { "title": "Bienvenue sur Caroster",