Can change invitation code

This commit is contained in:
2023-07-08 16:31:47 +02:00
parent e3dea1512c
commit f93bc704a5
3 changed files with 74 additions and 14 deletions

View File

@ -211,16 +211,19 @@ function FamilyCard(p: {
return (
<Card style={{ margin: "5px" }}>
<CardActionArea>
{" "}
<RouterLink to={p.f.BaseURL}>
<CardContent>
<Typography gutterBottom variant="h5" component="div">
{p.f.name}
</Typography>
<Typography variant="body2" color="text.secondary">
<span style={{ fontStyle: "italic" }}>
{p.f.is_admin ? "Administrateur" : "Membre"}
</span>
<br />
{p.f.count_members === 1
? "1 membre"
: p.f.count_members + " membres"}{" "}
: p.f.count_members + " membres"}
<br />
{p.f.count_admins === 1
? "1 administrateur"