add + expander in place of collapser.

This commit is contained in:
Jason Schwarzenberger 2020-11-04 12:43:15 +13:00
parent d718d05a04
commit 892a99eca6

View File

@ -87,9 +87,12 @@ class Article extends React.Component {
{c.author === story.author ? '[OP]' : ''} {c.author || '[Deleted]'}
{' '} | <HashLink to={'#' + cid} id={cid}>{moment.unix(c.date).fromNow()}</HashLink>
{hidden || hasChildren &&
{hasChildren && (
hidden ?
<span className='collapser pointer' onClick={() => this.collapseComment(cid)}></span>
}
:
<span className='collapser expander pointer' onClick={() => this.expandComment(cid)}>+</span>
)}
</p>
</div>