No need render div if no content

This commit is contained in:
Lim Chee Aun 2023-12-03 20:26:42 +08:00
parent 810596b7cf
commit f98306ed18

View file

@ -1370,6 +1370,7 @@ function Status({
</button>
</>
)}
{!!content && (
<div class="content" ref={contentRef} data-read-more={readMoreText}>
<div
lang={language}
@ -1427,6 +1428,7 @@ function Status({
/>
<QuoteStatuses id={id} instance={instance} level={quoted} />
</div>
)}
{!!poll && (
<Poll
lang={language}