From 115917b0d2597632c48a2aaa3dc9df0916243377 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Tue, 13 Feb 2018 00:52:33 +0200 Subject: [PATCH] remove old comment deleting handler --- .../thread/_hidden/thread_hidden.scss | 3 --- web/app/components/thread/index.js | 2 -- web/app/components/thread/thread.jsx | 19 ++----------------- 3 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 web/app/components/thread/_hidden/thread_hidden.scss diff --git a/web/app/components/thread/_hidden/thread_hidden.scss b/web/app/components/thread/_hidden/thread_hidden.scss deleted file mode 100644 index ce7eb403..00000000 --- a/web/app/components/thread/_hidden/thread_hidden.scss +++ /dev/null @@ -1,3 +0,0 @@ -.thread_hidden { - display: none; -} diff --git a/web/app/components/thread/index.js b/web/app/components/thread/index.js index b995c833..c774686b 100644 --- a/web/app/components/thread/index.js +++ b/web/app/components/thread/index.js @@ -1,5 +1,3 @@ export { default } from './thread'; require('./thread.scss'); - -require('./_hidden/thread_hidden.scss'); diff --git a/web/app/components/thread/thread.jsx b/web/app/components/thread/thread.jsx index 2910ab19..202eaf15 100644 --- a/web/app/components/thread/thread.jsx +++ b/web/app/components/thread/thread.jsx @@ -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 ( -