From 70e13716d52ed8999afb8eaedde2e7c27696183f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Sun, 15 Feb 2026 17:19:03 +0100 Subject: [PATCH] nicolium: remove unused code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/components/account.tsx | 34 ++++--------------- .../pl-fe/src/components/rss-feed-info.tsx | 31 ++++------------- 2 files changed, 14 insertions(+), 51 deletions(-) diff --git a/packages/pl-fe/src/components/account.tsx b/packages/pl-fe/src/components/account.tsx index 6b9a7269a..76766aada 100644 --- a/packages/pl-fe/src/components/account.tsx +++ b/packages/pl-fe/src/components/account.tsx @@ -104,7 +104,6 @@ interface IAccount { onActionClick?: (account: AccountSchema) => void; showAccountHoverCard?: boolean; timestamp?: string; - timestampUrl?: string; futureTimestamp?: boolean; withAccountNote?: boolean; withAvatar?: boolean; @@ -133,7 +132,6 @@ const Account = ({ onActionClick, showAccountHoverCard = true, timestamp, - timestampUrl, futureTimestamp = false, withAccountNote = false, withAvatar = true, @@ -432,31 +430,13 @@ const Account = ({ <> - {timestampUrl ? ( - { - event.stopPropagation(); - }} - > - - - ) : ( - - )} + ) : null} diff --git a/packages/pl-fe/src/components/rss-feed-info.tsx b/packages/pl-fe/src/components/rss-feed-info.tsx index e8ca3d947..1dad23601 100644 --- a/packages/pl-fe/src/components/rss-feed-info.tsx +++ b/packages/pl-fe/src/components/rss-feed-info.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; -import { Link } from 'react-router-dom'; import RelativeTimestamp from './relative-timestamp'; import Avatar from './ui/avatar'; @@ -14,10 +13,9 @@ import type { RssFeed } from 'pl-api'; interface IRssFeedInfo { feed: RssFeed; timestamp: string; - timestampUrl?: string; } -const RssFeedInfo: React.FC = ({ feed, timestamp, timestampUrl }) => ( +const RssFeedInfo: React.FC = ({ feed, timestamp }) => (
@@ -46,27 +44,12 @@ const RssFeedInfo: React.FC = ({ feed, timestamp, timestampUrl }) · - {timestampUrl ? ( - event.stopPropagation()} - > - - - ) : ( - - )} +