pl-fe: add missing code
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -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}</>;
|
||||
}
|
||||
});
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user