pl-fe: add missing code
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
a7afd8bb71
commit
a636ebdc40
2 changed files with 15 additions and 9 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue