diff --git a/client/coral-embed-stream/src/index.js b/client/coral-embed-stream/src/index.js index 45fc4c034..7100c0d28 100644 --- a/client/coral-embed-stream/src/index.js +++ b/client/coral-embed-stream/src/index.js @@ -17,7 +17,7 @@ import pluginsConfig from 'pluginsConfig'; // TODO: move init code into `bootstrap` service after auth has been refactored. function preInit({ store, pym, inIframe }) { // TODO: This is popup specific code and needs to be refactored. - if (!inIframe()) { + if (!inIframe) { store.dispatch(addExternalConfig({})); store.dispatch(checkLogin()); return; diff --git a/client/coral-embed-stream/src/tabs/stream/components/CommentForm.js b/client/coral-embed-stream/src/tabs/stream/components/CommentForm.js index 9a84bdbe8..28b8bb668 100644 --- a/client/coral-embed-stream/src/tabs/stream/components/CommentForm.js +++ b/client/coral-embed-stream/src/tabs/stream/components/CommentForm.js @@ -2,13 +2,13 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'coral-ui'; import cn from 'classnames'; -import Slot from 'coral-framework/components/Slot'; // TODO: (kiwi) Need to adapt CSS classes post refactor to match the rest. import { name } from '../containers/CommentBox'; import styles from './CommentForm.css'; import t from 'coral-framework/services/i18n'; +import DraftArea from '../containers/DraftArea'; /** * Common UI for Creating or Editing a Comment @@ -61,10 +61,6 @@ export class CommentForm extends React.Component { }; } - onBodyChange = e => { - this.props.onBodyChange(e.target.value); - }; - onClickSubmit = () => { this.props.onSubmit(); }; @@ -107,37 +103,16 @@ export class CommentForm extends React.Component { return (
-
- -