Various pre-launch fixes.
This commit is contained in:
parent
246f2023bc
commit
1c3273cee2
9 changed files with 29 additions and 39 deletions
15
app/utils/ghostieAvatar.js
Normal file
15
app/utils/ghostieAvatar.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
const AVATAR_FILE_NAMES = {
|
||||
'sweet': 'Sweet',
|
||||
'mild': 'Mild',
|
||||
'exasperated': 'Exasperated',
|
||||
'disbelieving': 'Disbelieving',
|
||||
'double-take': 'Double-Take',
|
||||
'wtf': 'WTF',
|
||||
}
|
||||
|
||||
export function ghostieImagePath(avatar) {
|
||||
if (!avatar) return null
|
||||
const name = AVATAR_FILE_NAMES[String(avatar).toLowerCase()]
|
||||
if (!name) return null
|
||||
return `/ghosties/Ghost-${name}.png`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue