Don't render unecessarily date of birth
This commit is contained in:
parent
44f54934cc
commit
e4ca9f7e9e
@ -33,9 +33,13 @@ export function MemberItem(p: {
|
|||||||
{p.member?.dead && <Icon path={mdiCross} size={"1rem"} />}
|
{p.member?.dead && <Icon path={mdiCross} size={"1rem"} />}
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
secondary={`${fmtDate(p.member?.dateOfBirth)} - ${fmtDate(
|
secondary={
|
||||||
p.member?.dateOfDeath
|
p.member?.dead
|
||||||
)}`}
|
? `${fmtDate(p.member?.dateOfBirth)} - ${fmtDate(
|
||||||
|
p.member?.dateOfDeath
|
||||||
|
)}`
|
||||||
|
: fmtDate(p.member?.dateOfBirth)
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
{p.secondary && (
|
{p.secondary && (
|
||||||
<ListItemSecondaryAction>{p.secondary}</ListItemSecondaryAction>
|
<ListItemSecondaryAction>{p.secondary}</ListItemSecondaryAction>
|
||||||
|
Loading…
Reference in New Issue
Block a user