Notification: treat follow differently from follow_request
This commit is contained in:
parent
c69e1047ac
commit
7f14dd2331
1 changed files with 8 additions and 8 deletions
|
@ -270,6 +270,14 @@ const Notification: React.FC<INotificaton> = (props) => {
|
|||
const renderContent = () => {
|
||||
switch (type) {
|
||||
case 'follow':
|
||||
case 'user_approved':
|
||||
return account && typeof account === 'object' ? (
|
||||
<AccountContainer
|
||||
id={account.id}
|
||||
hidden={hidden}
|
||||
avatarSize={48}
|
||||
/>
|
||||
) : null;
|
||||
case 'follow_request':
|
||||
return account && typeof account === 'object' ? (
|
||||
<AccountContainer
|
||||
|
@ -279,14 +287,6 @@ const Notification: React.FC<INotificaton> = (props) => {
|
|||
actionType='follow_request'
|
||||
/>
|
||||
) : null;
|
||||
case 'user_approved':
|
||||
return account && typeof account === 'object' ? (
|
||||
<AccountContainer
|
||||
id={account.id}
|
||||
hidden={hidden}
|
||||
avatarSize={48}
|
||||
/>
|
||||
) : null;
|
||||
case 'move':
|
||||
return account && typeof account === 'object' && notification.target && typeof notification.target === 'object' ? (
|
||||
<AccountContainer
|
||||
|
|
Loading…
Reference in a new issue