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 ( -