Notification: treat follow differently from follow_request

react-query-api
Alex Gleason 2022-07-30 18:37:48 -05:00
rodzic c69e1047ac
commit 7f14dd2331
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -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