Can easily create children from member route

This commit is contained in:
Pierre HUBERT 2023-08-16 14:46:57 +02:00
parent ee14d629d4
commit ce5fb3077d

View File

@ -657,6 +657,18 @@ export function MemberPage(p: {
</RouterLink> </RouterLink>
)) ))
)} )}
<div style={{ display: "flex", justifyContent: "end" }}>
<RouterLink
to={family.family.URL(
`member/create?${
member.sex === "F" ? "mother" : "father"
}=${member.id}`
)}
>
<Button>Nouveau</Button>
</RouterLink>
</div>
</PropertiesBox> </PropertiesBox>
</Grid> </Grid>
)} )}