sforkowany z mirror/soapbox
Move timestamp back to Account
rodzic
24f4737a91
commit
d6c9952a8c
|
@ -310,13 +310,7 @@ const Status: React.FC<IStatus> = (props) => {
|
|||
react: handleHotkeyReact,
|
||||
};
|
||||
|
||||
const timestampEl = (
|
||||
<Link to={statusUrl} className='hover:underline' onClick={(event) => event.stopPropagation()}>
|
||||
<RelativeTimestamp timestamp={actualStatus.created_at} theme='muted' size='sm' className='whitespace-nowrap' />
|
||||
</Link>
|
||||
);
|
||||
|
||||
const accountAction = props.accountAction || timestampEl;
|
||||
const accountAction = props.accountAction;
|
||||
|
||||
const isUnderReview = actualStatus.visibility === 'self';
|
||||
const isSensitive = actualStatus.hidden;
|
||||
|
@ -347,6 +341,8 @@ const Status: React.FC<IStatus> = (props) => {
|
|||
<AccountContainer
|
||||
key={String(actualStatus.getIn(['account', 'id']))}
|
||||
id={String(actualStatus.getIn(['account', 'id']))}
|
||||
timestamp={actualStatus.created_at}
|
||||
timestampUrl={statusUrl}
|
||||
action={accountAction}
|
||||
hideActions={!accountAction}
|
||||
showEdit={!!actualStatus.edited_at}
|
||||
|
|
|
@ -59,15 +59,6 @@ const DetailedStatus: React.FC<IDetailedStatus> = ({
|
|||
const isUnderReview = actualStatus.visibility === 'self';
|
||||
const isSensitive = actualStatus.hidden;
|
||||
|
||||
const timestampEl = (
|
||||
<RelativeTimestamp
|
||||
timestamp={actualStatus.created_at}
|
||||
theme='muted'
|
||||
size='sm'
|
||||
className='whitespace-nowrap'
|
||||
/>
|
||||
);
|
||||
|
||||
let statusTypeIcon = null;
|
||||
|
||||
let quote;
|
||||
|
@ -97,7 +88,7 @@ const DetailedStatus: React.FC<IDetailedStatus> = ({
|
|||
<Account
|
||||
key={account.id}
|
||||
account={account}
|
||||
action={timestampEl}
|
||||
timestamp={actualStatus.created_at}
|
||||
avatarSize={42}
|
||||
hideActions
|
||||
/>
|
||||
|
|
Ładowanie…
Reference in New Issue