Add NPC profile picture to other pages
This commit is contained in:
parent
a5a5143bd6
commit
cec4aa22e6
2 changed files with 20 additions and 2 deletions
|
|
@ -136,7 +136,16 @@ const GridRep = (props: Props) => {
|
||||||
src={`/profile/${props.user.avatar.picture}.png`}
|
src={`/profile/${props.user.avatar.picture}.png`}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
} else return <div className="no-user" />
|
} else
|
||||||
|
return (
|
||||||
|
<img
|
||||||
|
alt={t('no_user')}
|
||||||
|
className={`profile anonymous`}
|
||||||
|
srcSet={`/profile/npc.png,
|
||||||
|
/profile/npc@2x.png 2x`}
|
||||||
|
src={`/profile/npc.png`}
|
||||||
|
/>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const linkedAttribution = () => (
|
const linkedAttribution = () => (
|
||||||
|
|
|
||||||
|
|
@ -403,7 +403,16 @@ const PartyDetails = (props: Props) => {
|
||||||
src={`/profile/${picture}.png`}
|
src={`/profile/${picture}.png`}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
else return <div className="no-user" />
|
else
|
||||||
|
return (
|
||||||
|
<img
|
||||||
|
alt={t('no_user')}
|
||||||
|
className={`profile anonymous`}
|
||||||
|
srcSet={`/profile/npc.png,
|
||||||
|
/profile/npc@2x.png 2x`}
|
||||||
|
src={`/profile/npc.png`}
|
||||||
|
/>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const userBlock = (username?: string, picture?: string, element?: string) => {
|
const userBlock = (username?: string, picture?: string, element?: string) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue