nicolium: remove unused code

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-15 17:19:03 +01:00
parent 1357046fb1
commit 70e13716d5
2 changed files with 14 additions and 51 deletions

View File

@ -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 = ({
<>
<span className='⁂-separator' />
{timestampUrl ? (
<Link
to={timestampUrl}
className='hover:underline'
onClick={(event) => {
event.stopPropagation();
}}
>
<RelativeTimestamp
timestamp={timestamp}
theme='muted'
size='sm'
className='whitespace-nowrap'
futureDate={futureTimestamp}
/>
</Link>
) : (
<RelativeTimestamp
timestamp={timestamp}
theme='muted'
size='sm'
className='whitespace-nowrap'
futureDate={futureTimestamp}
/>
)}
<RelativeTimestamp
timestamp={timestamp}
theme='muted'
size='sm'
className='whitespace-nowrap'
futureDate={futureTimestamp}
/>
</>
) : null}

View File

@ -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<IRssFeedInfo> = ({ feed, timestamp, timestampUrl }) => (
const RssFeedInfo: React.FC<IRssFeedInfo> = ({ feed, timestamp }) => (
<div className='group block w-full shrink-0'>
<HStack alignItems='center' space={3} className='overflow-hidden'>
<div className='rounded-lg'>
@ -46,27 +44,12 @@ const RssFeedInfo: React.FC<IRssFeedInfo> = ({ feed, timestamp, timestampUrl })
&middot;
</Text>
{timestampUrl ? (
<Link
to={timestampUrl}
className='hover:underline'
onClick={(event) => event.stopPropagation()}
>
<RelativeTimestamp
timestamp={timestamp}
theme='muted'
size='sm'
className='whitespace-nowrap'
/>
</Link>
) : (
<RelativeTimestamp
timestamp={timestamp}
theme='muted'
size='sm'
className='whitespace-nowrap'
/>
)}
<RelativeTimestamp
timestamp={timestamp}
theme='muted'
size='sm'
className='whitespace-nowrap'
/>
</HStack>
</Stack>
</div>