loader & grand*
This commit is contained in:
parent
4965eb25d1
commit
68314e9d49
BIN
images/broc-grandma.png
Normal file
BIN
images/broc-grandma.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 123 KiB |
BIN
images/broc-grandpa.png
Normal file
BIN
images/broc-grandpa.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 120 KiB |
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user