diff --git a/geneit_app/src/widgets/BasicFamilyTree.tsx b/geneit_app/src/widgets/BasicFamilyTree.tsx index a31a6d9..fa86411 100644 --- a/geneit_app/src/widgets/BasicFamilyTree.tsx +++ b/geneit_app/src/widgets/BasicFamilyTree.tsx @@ -6,7 +6,7 @@ import React from "react"; import { MemberPhoto } from "./MemberPhoto"; import { Member, fmtDate } from "../api/MemberApi"; import Icon from "@mdi/react"; -import { mdiCross } from "@mdi/js"; +import { mdiBabyCarriage, mdiCross } from "@mdi/js"; export function BasicFamilyTree(p: { tree: FamilyTreeNode; @@ -72,9 +72,23 @@ function BasicFamilyMemberItem(p: { {p.member.fullName}{" "} {p.member?.dead && } - {(p.member.dateOfBirth || p.member.dateOfDeath) && - fmtDate(p.member.dateOfBirth) + - (p.member.dateOfDeath ? " - " + fmtDate(p.member.dateOfDeath) : "")} + + {p.member.dateOfBirth && ( + <> + {" "} + {fmtDate(p.member.dateOfBirth)} + + )} + + + + {p.member.dateOfDeath && ( + <> + + {fmtDate(p.member.dateOfDeath)} + + )} + );