Skip to content
Snippets Groups Projects
Verified Commit 35a01a33 authored by Andreas Ellewsen's avatar Andreas Ellewsen
Browse files

Show number of guests in categories

Resolves: GREG-193
parent 7dd5ba00
No related branches found
No related tags found
1 merge request!268Show number of guests in categories
Pipeline #113779 passed
...@@ -217,7 +217,9 @@ const InvitedGuests = ({ persons }: GuestProps) => { ...@@ -217,7 +217,9 @@ const InvitedGuests = ({ persons }: GuestProps) => {
<StyledAccordionSummary <StyledAccordionSummary
expandIcon={<ArrowUpwardIcon sx={{ fill: 'black' }} />} expandIcon={<ArrowUpwardIcon sx={{ fill: 'black' }} />}
> >
<Typography variant="h2">{t('common:sentInvitations')}</Typography> <Typography variant="h2">
{`${t('common:sentInvitations')} (${guests.length})`}
</Typography>
</StyledAccordionSummary> </StyledAccordionSummary>
<AccordionDetails> <AccordionDetails>
<Typography variant="body1"> <Typography variant="body1">
...@@ -248,7 +250,9 @@ const ActiveGuests = ({ persons }: GuestProps) => { ...@@ -248,7 +250,9 @@ const ActiveGuests = ({ persons }: GuestProps) => {
<StyledAccordionSummary <StyledAccordionSummary
expandIcon={<ArrowUpwardIcon sx={{ fill: 'black' }} />} expandIcon={<ArrowUpwardIcon sx={{ fill: 'black' }} />}
> >
<Typography variant="h2">{t('common:activeGuests')}</Typography> <Typography variant="h2">
{`${t('common:activeGuests')} (${guests.length})`}
</Typography>
</StyledAccordionSummary> </StyledAccordionSummary>
<AccordionDetails> <AccordionDetails>
<Typography variant="body1"> <Typography variant="body1">
...@@ -281,7 +285,7 @@ const WaitingGuests = ({ persons }: GuestProps) => { ...@@ -281,7 +285,7 @@ const WaitingGuests = ({ persons }: GuestProps) => {
expandIcon={<ArrowUpwardIcon sx={{ fill: 'black' }} />} expandIcon={<ArrowUpwardIcon sx={{ fill: 'black' }} />}
> >
<Typography variant="h2"> <Typography variant="h2">
{t('common:waitingGuests')}{' '} {`${t('common:waitingGuests')} (${guests.length})`}{' '}
{guests.length > 0 && ( {guests.length > 0 && (
<NotificationsActiveIcon <NotificationsActiveIcon
sx={{ color: 'error.main', fontSize: '1.625rem' }} sx={{ color: 'error.main', fontSize: '1.625rem' }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment