Add NPC profile picture to other pages

This commit is contained in:
Justin Edmund 2023-01-30 04:26:03 -08:00
parent a5a5143bd6
commit cec4aa22e6
2 changed files with 20 additions and 2 deletions

View file

@ -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 = () => (

View file

@ -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) => {