@ -166,11 +166,6 @@ export default class StatusContent extends React.PureComponent {
}
}
}
}
handleCollapsedClick = ( e ) => {
e . preventDefault ( ) ;
this . setState ( { collapsed : ! this . state . collapsed } ) ;
}
setRef = ( c ) => {
setRef = ( c ) => {
this . node = c ;
this . node = c ;
}
}
@ -234,15 +229,19 @@ export default class StatusContent extends React.PureComponent {
< / d i v >
< / d i v >
) ;
) ;
} else if ( this . props . onClick ) {
} else if ( this . props . onClick ) {
return (
const output = [
< div className = { classNames } ref = { this . setRef } tabIndex = '0' style = { directionStyle } onMouseDown = { this . handleMouseDown } onMouseUp = { this . handleMouseUp } >
< div className = { classNames } ref = { this . setRef } tabIndex = '0' style = { directionStyle } onMouseDown = { this . handleMouseDown } onMouseUp = { this . handleMouseUp } >
< div className = 'status__content__text status__content__text--visible' style = { directionStyle } dangerouslySetInnerHTML = { content } lang = { status . get ( 'language' ) } / >
< div className = 'status__content__text status__content__text--visible' style = { directionStyle } dangerouslySetInnerHTML = { content } lang = { status . get ( 'language' ) } / >
{ ! ! this . state . collapsed && readMoreButton }
{ ! ! status . get ( 'poll' ) && < PollContainer pollId = { status . get ( 'poll' ) } / > }
{ ! ! status . get ( 'poll' ) && < PollContainer pollId = { status . get ( 'poll' ) } / > }
< / d i v >
< / d i v > ,
) ;
] ;
if ( this . state . collapsed ) {
output . push ( readMoreButton ) ;
}
return output ;
} else {
} else {
return (
return (
< div className = { classNames } ref = { this . setRef } tabIndex = '0' style = { directionStyle } >
< div className = { classNames } ref = { this . setRef } tabIndex = '0' style = { directionStyle } >