Can set the father and the mother of a member

This commit is contained in:
2023-08-11 10:30:04 +02:00
parent e237abe4e1
commit 335ff0f178
7 changed files with 223 additions and 45 deletions

View File

@ -3,13 +3,17 @@ import { Member } from "../api/MemberApi";
export function MemberPhoto(p: {
member: Member;
width: number;
width?: number;
}): React.ReactElement {
return (
<Avatar
sx={{ width: `${p.width}px`, height: "auto", display: "inline-block" }}
sx={
p.width
? { width: `${p.width}px`, height: "auto", display: "inline-block" }
: undefined
}
variant="rounded"
src={p.member.thumbnailURL}
src={p.member.thumbnailURL ?? undefined}
/>
);
}