diff --git a/images/broc-grandma.png b/images/broc-grandma.png new file mode 100644 index 0000000..7f1a167 Binary files /dev/null and b/images/broc-grandma.png differ diff --git a/images/broc-grandpa.png b/images/broc-grandpa.png new file mode 100644 index 0000000..65fe254 Binary files /dev/null and b/images/broc-grandpa.png differ diff --git a/src/components/Family/FamilySection.tsx b/src/components/Family/FamilySection.tsx index 735a2a7..160c8dd 100644 --- a/src/components/Family/FamilySection.tsx +++ b/src/components/Family/FamilySection.tsx @@ -106,6 +106,12 @@ function getAvatarSrc(user: User): string { : '/images/broc-boy.png'; } + if (user.age > 60) { + return user.gender === 'f' + ? '/images/broc-grandma.png' + : '/images/broc-grandpa.png'; + } + return user.gender === 'f' ? '/images/broc-woman.png' : '/images/broc-man.png';