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} />);
|
output.push(<TranslateButton status={status} />);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (media) {
|
||||||
|
output.push(media);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hashtags.length) {
|
||||||
|
output.push(<HashtagsBar key='hashtags' hashtags={hashtags} />);
|
||||||
|
}
|
||||||
|
|
||||||
return <>{output}</>;
|
return <>{output}</>;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -399,15 +399,13 @@ const Status: React.FC<IStatus> = (props) => {
|
||||||
|
|
||||||
<Stack className='relative z-0'>
|
<Stack className='relative z-0'>
|
||||||
{actualStatus.event ? <EventPreview className='shadow-xl' status={actualStatus} /> : (
|
{actualStatus.event ? <EventPreview className='shadow-xl' status={actualStatus} /> : (
|
||||||
<Stack space={4}>
|
<StatusContent
|
||||||
<StatusContent
|
status={actualStatus}
|
||||||
status={actualStatus}
|
onClick={handleClick}
|
||||||
onClick={handleClick}
|
collapsable
|
||||||
collapsable
|
translatable
|
||||||
translatable
|
withMedia
|
||||||
withMedia
|
/>
|
||||||
/>
|
|
||||||
</Stack>
|
|
||||||
)}
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue