From e98a21199be27615b8cd128f9401acacfc960e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Sun, 19 Oct 2025 21:34:37 +0200 Subject: [PATCH] pl-fe: reduce nesting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .../notifications/components/notification.tsx | 46 +++++++++---------- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/packages/pl-fe/src/features/notifications/components/notification.tsx b/packages/pl-fe/src/features/notifications/components/notification.tsx index 8f386c65d..7bcf23b8f 100644 --- a/packages/pl-fe/src/features/notifications/components/notification.tsx +++ b/packages/pl-fe/src/features/notifications/components/notification.tsx @@ -443,40 +443,36 @@ const Notification: React.FC = (props) => { ) ); + const statusInfo = ; + return (
-
-
- -
- -
+ {!['mention', 'status'].includes(notification.type) ? ( + +
+ {statusInfo} +
- {!['mention', 'status'].includes(notification.type) && ( -
- - - -
- )} -
-
+
+ + + +
+ + ) : statusInfo} -
- {renderContent()} -
-
+ {renderContent()}
);