Wrap <Avatar> in account header in a link to that account's page. Fixes #245.
This commit is contained in:
parent
00d1f8eea1
commit
dbd5f8b9a5
1 changed files with 9 additions and 1 deletions
|
@ -63,7 +63,15 @@ export default class Header extends ImmutablePureComponent {
|
||||||
<div className='account__header__wrapper'>
|
<div className='account__header__wrapper'>
|
||||||
<div className='account__header' style={{ backgroundImage: `url(${account.get('header')})` }}>
|
<div className='account__header' style={{ backgroundImage: `url(${account.get('header')})` }}>
|
||||||
<div>
|
<div>
|
||||||
|
<a
|
||||||
|
href={account.get('url')}
|
||||||
|
className='account__header__avatar'
|
||||||
|
role='presentation'
|
||||||
|
target='_blank'
|
||||||
|
rel='noopener'
|
||||||
|
>
|
||||||
<Avatar account={account} size={90} />
|
<Avatar account={account} size={90} />
|
||||||
|
</a>
|
||||||
|
|
||||||
<span className='account__header__display-name' dangerouslySetInnerHTML={{ __html: displayName }} />
|
<span className='account__header__display-name' dangerouslySetInnerHTML={{ __html: displayName }} />
|
||||||
<span className='account__header__username'>@{account.get('acct')} {account.get('locked') ? <i className='fa fa-lock' /> : null}</span>
|
<span className='account__header__username'>@{account.get('acct')} {account.get('locked') ? <i className='fa fa-lock' /> : null}</span>
|
||||||
|
|
Loading…
Reference in a new issue