|
|
@ -37,6 +37,7 @@ export default class Header extends ImmutablePureComponent { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let displayName = account.get('display_name_html'); |
|
|
|
let displayName = account.get('display_name_html'); |
|
|
|
|
|
|
|
let fields = account.get('fields'); |
|
|
|
let info = ''; |
|
|
|
let info = ''; |
|
|
|
let mutingInfo = ''; |
|
|
|
let mutingInfo = ''; |
|
|
|
let actionBtn = ''; |
|
|
|
let actionBtn = ''; |
|
|
@ -100,14 +101,21 @@ export default class Header extends ImmutablePureComponent { |
|
|
|
<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> |
|
|
|
<div className='account__header__content' dangerouslySetInnerHTML={{ __html: emojify(text) }} /> |
|
|
|
<div className='account__header__content' dangerouslySetInnerHTML={{ __html: emojify(text) }} /> |
|
|
|
|
|
|
|
|
|
|
|
{info} |
|
|
|
{fields.size > 0 && ( |
|
|
|
{mutingInfo} |
|
|
|
<table className='account__header__fields'> |
|
|
|
{actionBtn} |
|
|
|
<tbody> |
|
|
|
</div> |
|
|
|
{fields.map((pair, i) => ( |
|
|
|
</div> |
|
|
|
<tr key={i}> |
|
|
|
|
|
|
|
<th dangerouslySetInnerHTML={{ __html: pair.get('name_emojified') }} /> |
|
|
|
|
|
|
|
<td dangerouslySetInnerHTML={{ __html: pair.get('value_emojified') }} /> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
))} |
|
|
|
|
|
|
|
</tbody> |
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
|
|
|
|
{metadata.length && ( |
|
|
|
{fields.size == 0 && metadata.length && ( |
|
|
|
<table className='account__metadata'> |
|
|
|
<table className='account__header__fields'> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
{(() => { |
|
|
|
{(() => { |
|
|
|
let data = []; |
|
|
|
let data = []; |
|
|
@ -124,6 +132,12 @@ export default class Header extends ImmutablePureComponent { |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
) || null} |
|
|
|
) || null} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{info} |
|
|
|
|
|
|
|
{mutingInfo} |
|
|
|
|
|
|
|
{actionBtn} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|