160 | {(this.props.edited && 161 | 'Edited on: ' + this.getStyledTimeStamp()) || 162 | this.getStyledTimeStamp()} 163 |
164 |169 | {this.props.context.length >= 125 && !this.props.expanded 170 | ? this.props.context.slice(0, 125) + '...' 171 | : this.props.context} 172 |
173 |196 | {(this.props.edited && 197 | 'Edited on: ' + this.getStyledTimeStamp()) || 198 | this.getStyledTimeStamp()} 199 |
200 | {this.state.hover && 201 | this.props.expanded && 202 | !this.props.isEditing(this.props.index.toString()) && ( 203 |207 | • 208 |
209 | { 213 | this.setState({ editBox: '' }); 214 | this.props.setIsEditing(this.props.index.toString()); 215 | }} 216 | > 217 | Edit 218 | 219 |220 | • 221 |
222 | this.props.deleteComment(this.props.index)} 226 | > 227 | Delete 228 | 229 |252 | {this.props.context.length >= 125 && !this.props.expanded 253 | ? this.props.context.slice(0, 125) + '...' 254 | : this.props.context} 255 |
256 | )} 257 | {this.getEditButtons()} 258 |