Can set the father and the mother of a member
This commit is contained in:
@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user