mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 18:55:44 +03:00
Lock icon for locked profiles
This commit is contained in:
parent
e7e4f15234
commit
ce190cbc50
1 changed files with 7 additions and 0 deletions
|
@ -62,6 +62,7 @@ function AccountBlock({
|
||||||
group,
|
group,
|
||||||
followersCount,
|
followersCount,
|
||||||
createdAt,
|
createdAt,
|
||||||
|
locked,
|
||||||
} = account;
|
} = account;
|
||||||
let [_, acct1, acct2] = acct.match(/([^@]+)(@.+)/i) || [, acct];
|
let [_, acct1, acct2] = acct.match(/([^@]+)(@.+)/i) || [, acct];
|
||||||
if (accountInstance) {
|
if (accountInstance) {
|
||||||
|
@ -123,6 +124,12 @@ function AccountBlock({
|
||||||
@{acct1}
|
@{acct1}
|
||||||
<wbr />
|
<wbr />
|
||||||
{acct2}
|
{acct2}
|
||||||
|
{locked && (
|
||||||
|
<>
|
||||||
|
{' '}
|
||||||
|
<Icon icon="lock" size="s" alt="Locked" />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
{showActivity && (
|
{showActivity && (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in a new issue