Start to build basic family tree

This commit is contained in:
2023-08-22 11:31:04 +02:00
parent 4d5bdaad57
commit 8cfe51fb0d
5 changed files with 201 additions and 39 deletions

View File

@ -20,6 +20,7 @@ import {
import { useFamily } from "../../widgets/BaseFamilyRoute";
import { MemberItem } from "../../widgets/MemberItem";
import { RouterLink } from "../../widgets/RouterLink";
import { BasicFamilyTree } from "../../widgets/BasicFamilyTree";
enum CurrTab {
BasicTree,
@ -116,7 +117,13 @@ export function FamilyMemberTreeRoute(): React.ReactElement {
</div>
{/* the tree itself */}
<Paper style={{ flex: "1" }}>todo</Paper>
<Paper style={{ flex: "1" }}>
{currTab === CurrTab.BasicTree ? (
<BasicFamilyTree tree={tree!} />
) : (
<>todo</>
)}
</Paper>
</div>
);
}