From 0d91396b1ced03b9b8cbe149760c47cb7d45e0b0 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Mon, 4 Dec 2017 22:45:23 +0100 Subject: [PATCH] Remove death star button --- .../src/tabs/stream/components/Stream.js | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/client/coral-embed-stream/src/tabs/stream/components/Stream.js b/client/coral-embed-stream/src/tabs/stream/components/Stream.js index 2bd131cb0..e37b91ba6 100644 --- a/client/coral-embed-stream/src/tabs/stream/components/Stream.js +++ b/client/coral-embed-stream/src/tabs/stream/components/Stream.js @@ -13,7 +13,7 @@ import t, {timeago} from 'coral-framework/services/i18n'; import CommentBox from 'talk-plugin-commentbox/CommentBox'; import QuestionBox from '../../../components/QuestionBox'; import {isCommentActive} from 'coral-framework/utils'; -import {Tab, TabCount, TabPane, Button} from 'coral-ui'; +import {Tab, TabCount, TabPane} from 'coral-ui'; import cn from 'classnames'; import {getTopLevelParent, attachCommentToParent} from '../../../graphql/utils'; @@ -207,23 +207,6 @@ class Stream extends React.Component { ); } - launchDeathStar = () => { - let i = 100; - const launch = () => { - setTimeout(() => { - this.props.postComment({ - asset_id: this.props.asset.id, - body: 'death is certain', - }); - i--; - if (i > 0) { - launch(); - } - }, 100); - }; - launch(); - } - render() { const { data, @@ -262,12 +245,6 @@ class Stream extends React.Component { return (
- {open ?