pl-fe: add missing code

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-11-06 17:31:08 +01:00
parent a7afd8bb71
commit a636ebdc40
2 changed files with 15 additions and 9 deletions

View file

@ -287,6 +287,14 @@ const StatusContent: React.FC<IStatusContent> = React.memo(({
output.push(<TranslateButton status={status} />);
}
if (media) {
output.push(media);
}
if (hashtags.length) {
output.push(<HashtagsBar key='hashtags' hashtags={hashtags} />);
}
return <>{output}</>;
}
});

View file

@ -399,15 +399,13 @@ const Status: React.FC<IStatus> = (props) => {
<Stack className='relative z-0'>
{actualStatus.event ? <EventPreview className='shadow-xl' status={actualStatus} /> : (
<Stack space={4}>
<StatusContent
status={actualStatus}
onClick={handleClick}
collapsable
translatable
withMedia
/>
</Stack>
<StatusContent
status={actualStatus}
onClick={handleClick}
collapsable
translatable
withMedia
/>
)}
</Stack>