remove old comment deleting handler

This commit is contained in:
igoradamenko
2018-02-13 01:15:09 +02:00
parent 0cbce460cb
commit 115917b0d2
3 changed files with 2 additions and 22 deletions
@@ -1,3 +0,0 @@
.thread_hidden {
display: none;
}
-2
View File
@@ -1,5 +1,3 @@
export { default } from './thread';
require('./thread.scss');
require('./_hidden/thread_hidden.scss');
+2 -17
View File
@@ -3,30 +3,15 @@ import { h, Component } from 'preact';
import Comment from 'components/comment';
export default class Thread extends Component {
constructor(props) {
super(props);
this.state = {
hidden: false,
};
this.hide = this.hide.bind(this);
}
hide() {
this.setState({ hidden: true });
}
render(props, { hidden }) {
render(props) {
const { data: { comment, replies = [] }, mix, mods = {} } = props;
return (
<div className={b('thread', props, { hidden })}>
<div className={b('thread', props)}>
<Comment
data={comment}
mods={{ level: mods.level }}
onReply={props.onReply}
onDelete={this.hide}
/>
{